Css selected row
Hi, I'm trying to apply a css for a selected row (no multiselect) but I'm not able to do that. With the rowMetaData, I'm able to change the css, but it depends on the value cell, but how can I change the css for selected row??
I would like users could know what row was selected, is it possible?? or I'm doing something wrong??
Regards,
I had similar problems and I had to useGriddleStyles={false} in order for my CSS to actually work.
I had a similar issue as well. There were a couple things that I had to do. 1) I had to use flux and set up an action that is used when a user selects a row. 2) I had to add a property to my array objects that said whether or not each row was selected. I used a bool named isSelected and added that to my list of objects. 3) I had to create a custom row component that actually renders the check box and checks or doesn't the box. 4) I had to create a custom component for the rowMetaData that checks the value of isSelected to determine whether or not the row should be selected; if the value of isSelected = true then I apply a bootstrap success class to the row which causes the row to be highlighted in green, otherwise I just return an empty string. This took me a bit to come up with but it seems to work pretty well. I hope this helps you and any other person stuck on this same issue.