rowCss
Optional. Sets style for a row
rowCss?: (row: object) => string;
Parameters:
The function takes the object of a row as a parameter and returns a string with the name of a CSS class.
Example
<style>
.my_custom_row {
background: coral;
}
</style>
const treegrid = new dhx.TreeGrid("treegrid_container", {
columns: [
// columns config
],
rowCss: (row) => { return row.custom ? "my_custom_row" : "" },
data: dataset
});
Related sample: TreeGrid. Custom row style