I’m trying to make a table on perspective, but when I enter the key for the data (translating to the column header on the table), it will not let me enter spaces or special characters such as %, (, etc. and tells me that it is an invalid key name.
Is there a way to get around this, I would really love for my column headers to have spaces and special characters
This is expected behavior but there is a simple way around it. The Table in Perspective has the “enableHeader” and “columns > header > title” properties.
Make sure the enableHeader property is true.
Then identify the name of the column as it is found in the data property, for example with the default table, the first column would be called ‘city’.
Finally, create a new array element under the “columns” property, set the “field” property to the corresponding data item.
You can now adjust the title property for the column header which accepts spaces, special characters, etc.
Here is a screenshot of a new array element under the “columns” property: