I’m trying to style certain cells on a Perspective table based on whether they are approved or not. The way I used to do it would be to use a named query and then transform the dataset, adding styles and whatever else. However, I noticed that if you drag on a default Perspective Table component to a view, the first cell is styled a certain way (it’s orange).
Here is what data[0]
looks like:
Based off of that, I got the idea to try returning a json object in a query that will add the style
object to a certain cell from the query so that I don’t need to transform it.
However, the problem is that the data
property treats the json object as a string instead of an object.
Here is what it appears as:
If I copy the string, convert json_title
to an object, and then paste the string on the json_title
, it works as expected.
The column render is set to auto
as there is no option for object
or anything of that sort. Any ideas?