GridEditorContext
Context object passed to cell editor components.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
value | TValue | The cell value for this column |
row | TRow | The full row data object |
column | ColumnConfig<TRow> | The column configuration |
field | unknown & string | Field key |
rowId | string | Stable row identifier (from getRowId). Empty string if no getRowId is configured. |
commit | (newValue: TValue) => void | Commit the new value and close editor |
cancel | () => void | Cancel editing without saving |
updateRow | (changes: Partial<TRow>) => void | Update other fields in this row while the editor is open. Changes trigger cell-change events with source 'cascade'. |
onValueChange? | (callback: (newValue: TValue) => void) => void | Register a callback to receive value updates when the cell is modified externally (e.g., via updateRow() from another cell’s commit). |
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt