Skip to main content

addCellCss()

adds a style to a cell

addCellCss(rowId: Id, colId: Id, css: string): void;

Parameters:

  • rowId: string | number - the id of a row
  • colId: string | number - the id of a column
  • css: string - the name of the CSS class

Example

<style>    .myCustomClass{        background:greenyellow;    }</style>
grid.addCellCss("1", "b", "myCustomClass");

Related sample: Grid. Add Cell Css