I'm using ag-grid-react to render my data into table format. It's an editable table, and I want to highlight the row when a user changes any cell in the row. I am using rowClassRules to add the changes like this:
<AgGridReact
rowData={data}
...otherprops
[rowClassRules] : {{
[styles.editedRow] : function(params) {
[what shall I add here?]
return true;
}
}}
>
I'm not sure how to check if the field was updated in rowClassRules. I can access the data and rowId of the edited row, but now sure how to use it to add appropriate styles.