addCellCss()
adds a style to a cell
addCellCss(rowId: Id, colId: Id, css: string): void;
Parameters:
rowId: string | number
- the id of a rowcolId: string | number
- the id of a columncss: string
- the name of the CSS class
Example
<style>
.myCustomClass{
background:greenyellow;
}
</style>
grid.addCellCss("1", "b", "myCustomClass");
Related sample: Grid. Add cell CSS