A function that returns a ReactNode representing the rendered content of a cell.
This function is called once per cell for the associated column. Cell renderers should be optimized for performance, as slow renderers may degrade the overall responsiveness of the grid.
Avoid unnecessary re-renders or expensive calculations inside this function.
params |
docs ) |
ReactNode
Input parameters passed to the CellRendererFn , which is responsible for rendering the display content of a specific cell in the grid.
Includes metadata and context such as the grid instance, row and column positions, selection state, and the full row node data.
The zero-based index of the column.
number
A reference to a column definition in LyteNyte Grid.
Type | Column |
A reference to the LyteNyte Grid instance.
Type | Grid |
The row node instance in LyteNyte Grid.
Type | RowNode |
Indicates whether the row is in an indeterminate selection state.
boolean
The zero-based index of the row.
number
The pinning state of a row, used to fix it to the top or bottom of the grid.
Type | RowPin |
Indicates whether the row is currently selected.
boolean