API reference: @salmonui/data-grid
DataGridCellPropsinterface
import type { DataGridCellProps } from '@salmonui/data-grid';interface DataGridCellProps<Row> {
rowId: RowId;
column: CompiledColumn<Row>;
rowIndex: number;
colIndex: number;
colSpan?: number;
rowSpan?: number;
spanStyle?: CSSProperties | undefined;
spanAnchor?: boolean;
renderKey?: number | undefined;
}
| 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 ( |