How to Add Dynamic Row Class in Ag-Grid Table
I Am Using Ag-Grid. Com, Does Anyone Know How to Add Dynamic Row Class Name in the Same Table? So That I Can Set Different Background Color Base on It. Thanks...
I am using ag-grid.com, does anyone know how to add dynamic row class name in the same table? So that I can set different background color base on it.
Thanks in advance!
1 Answer
As found in documentation :
var gridOptions = {
rowData: rowData,
columnDefs: columnDefs,
rowClassRules: {
'your-class': function(params) {
return your_condition;
}
}
};
and in vuejs it might look like:
this.rowClassRules: {
'your-class': params => {
return your_condition;
}
}