Add CSS to Perspective Table Rows based off of row content
B
Bradley Meyers
You can currently use a Perspective table striped property set odd and even rows on a table (see attached picture). If you sort the table then CSS automatically re-colors the odd/even rows appropriately.
This request/suggestion is asking for the ability to assign colors based off of a specific criteria in the row (such as population). For example, populations over 100,000 might get shades of green while populations under 100,000 might get shades of blue. The end result would be a table with dark green, light green, dark blue, and light blue. Once the user sorted the table the CSS would automatically follow.
It is currently possible to apply odd/even colors using a script transform however the pattern is broken as soon as a user sorts the table by any field (such as sorting by population). That is, the colors follow the row instead of being applied to the odd/even rows of the table based off of row criteria.
In the second picture you can see 2 red rows back-to-back. This feature request would change the shade of red for one of those rows automatically. If the user sorted the column CSS would update automatically.
Log In