API reference: @salmonui/data-grid
DataGridCellContextinterface
import type { DataGridCellContext } from '@salmonui/data-grid';interface DataGridCellContext<Row> {
row: Row;
rowId: RowId;
field: string;
column: DataGridColumnInfo<Row>;
value: unknown;
formattedValue: string;
rowIndex: number;
selected: boolean;
editing: boolean;
tree?: DataGridTreeContext;
}
| Name | Signature | Description |
|---|---|---|
row | row: Row; | |
rowId | rowId: RowId; | |
field | field: string; | The column key (column |
column | column: DataGridColumnInfo<Row>; | |
value | value: unknown; | |
formattedValue | formattedValue: string; | |
rowIndex | rowIndex: number; | |
selected | selected: boolean; | |
editing | editing: boolean; | |
treeoptional | tree?: DataGridTreeContext; | Tree mode, the tree column's cells only: depth, children, expansion and child load status. |