property

CellRendererFn

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.

Parameters

params

CellRendererParams (

docs

)

Returns

ReactNode

property

CellRendererParams

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.

colIndex

property

The zero-based index of the column.

Type

number

column

property

A reference to a column definition in LyteNyte Grid.

TypeColumn

grid

property

A reference to the LyteNyte Grid instance.

TypeGrid

row

property

The row node instance in LyteNyte Grid.

rowIndeterminate

property

Indicates whether the row is in an indeterminate selection state.

Type

boolean

rowIndex

property

The zero-based index of the row.

Type

number

rowPin

property

The pinning state of a row, used to fix it to the top or bottom of the grid.

TypeRowPin

rowSelected

property

Indicates whether the row is currently selected.

Type

boolean