API reference: @salmonui/data-grid
DataGridRowContextinterface
import type { DataGridRowContext } from '@salmonui/data-grid';interface DataGridRowContext<Row> {
row: Row;
rowId: RowId;
rowIndex: number;
defaultRow: ReactElement;
rowProps: DataGridRowElementProps;
cells: ReactNode;
}
| Name | Signature | Description |
|---|---|---|
row | row: Row; | |
rowId | rowId: RowId; | |
rowIndex | rowIndex: number; | |
defaultRow | defaultRow: ReactElement; | The default row element; return it, wrap its cells, or render |
rowProps | rowProps: DataGridRowElementProps; | |
cells | cells: ReactNode; | The row's cells (pinned zones included), to place inside a custom row element. |