I am using DetailsList of Office UI Frabric: https://developer.microsoft.com/en-us/fluentui#/controls/web/detailslist
I have a button on each row which opens a div. I want to highlight the row for which the div is opened.
I tired the solution below but it doesnt work in React : How to conditionally change a color of a row in detailslist?
I found the solution to this:
Call this method as below: