How to highlight data grid item (row) depending on attribute value?
Is there a way to highlight a list item based on the item attribute value? Let’s say you have a list of products, and some of them marked as favorites. I want to keep them in the same list but visually highlight these items in the data grid. I could use custom styles, but not sure how can I pick up attribute value to apply styles only to these rows.
Another option which I have used many times, if you are willing to use a list view, is the EnumClass widget. It can add a style to a cell / row, based on an Enum or boolean value. Target this CSS class with normal CSS to achieve what you need.