I have a table in griddle (v 1.13.1) and I want to highlight some rows.
var data = [{highlight:true, name:"Abc"},
{highlight:false, name:"Abc"},
{highlight:true, name:"Abc"}]
<Griddle
data={data} />
I want to add class to all rows, which have highlight==true. How can I do that?
If you look at the source code of how
<Row>
component is implemented, you can then define your own. The component accepts acomponents
props, and you can add there your own logic there as I did in the below demo.Note: For some reason this code doesn't work in SO editor.