API reference: @salmonui/data-grid
DataGridCellcomponent
import { DataGridCell } from '@salmonui/data-grid';const DataGridCell: <Row>(props: DataGridCellProps<Row>) => ReactNode;
Body cell part. Subscribes to its own engine cell channel only, so a change
to one cell re-renders one cell. memo (instead of compiler-derived
memoization, the package is not compiled yet) keeps retained cells from
re-rendering when a row re-renders for a column-window change.
Props: DataGridCellProps
| Name | Signature | Description |
|---|---|---|
rowId | rowId: RowId; | |
column | column: CompiledColumn<Row>; | |
rowIndex | rowIndex: number; | |
colIndex | colIndex: number; | 1-based |
colSpanoptional | colSpan?: number; | Cell span: |
rowSpanoptional | rowSpan?: number; | |
spanStyleoptional | spanStyle?: CSSProperties | undefined; | |
spanAnchoroptional | spanAnchor?: boolean; | A row span whose first row is above the rendered window, drawn in the
window's first row: the cell carries its own |
renderKeyoptional | renderKey?: number | undefined; | Render key of the column's render-only fields ( |