Conditional colouring
Posted: 2014-05-09 13:46
I have a colum that shows an integer from 1-5.
In table view I would like to show the cell background based on the value of the cell.
E.g.
If the value is 1, then 1 is presented with a blue cell background.
If the value is 2, then 2 is presented with a red cell background.
I guess I can do this by adding some javascript to my table TV template, but would really appreciate some hints in the right direction.
Thanks a lot.
In table view I would like to show the cell background based on the value of the cell.
E.g.
If the value is 1, then 1 is presented with a blue cell background.
If the value is 2, then 2 is presented with a red cell background.
I guess I can do this by adding some javascript to my table TV template, but would really appreciate some hints in the right direction.
Thanks a lot.