Skip to content

GridEditorContext

Context object passed to cell editor components.

PropertyTypeDescription
valueTValueThe cell value for this column
rowTRowThe full row data object
columnColumnConfig<TRow>The column configuration
fieldunknown & stringField key
rowIdstringStable row identifier (from getRowId). Empty string if no getRowId is configured.
commit(newValue: TValue) => voidCommit the new value and close editor
cancel() => voidCancel editing without saving
updateRow(changes: Partial<TRow>) => voidUpdate other fields in this row while the editor is open. Changes trigger cell-change events with source 'cascade'.
onValueChange?(callback: (newValue: TValue) => void) => voidRegister 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