Renders each cell and can change its content. Allows adding links, custom styles, formatting. Available both as an initialization parameter or an API call.
customizationFunction as an input parameter.
customizationFunction has the following signature:
function customizeCellFunction(cellBuilder, cellData)
cellBuilder object contains information about the cell representation and provides methods for the cell customization. The structure of
|Object||Specifies all the attributes and their values. It allows adding custom attributes which later can be used in CSS selectors. Additional info about CSS attribute selectors.|
|Array of Strings||Contains all the cell classes. A new class can be added via the |
|Object||Contains a CSS style of the cell.|
|String||Contains a tag element of the cell.|
|String||Contains a text of the cell (may contain HTML elements, e.g., images).|
|Method||Adds a new class to the cell.|
|Method||Returns the cell as an HTML string.|
cellData object contains all the information about the cell and its data. Learn more about the structure of a Cell Data Object.
Add alternative colors for the rows: