EditorExecContext
Internal editor execution context extending the generic cell context with commit helpers.
Used internally by the editing system. For public editor APIs, prefer using ColumnEditorContext.
Example
Section titled “Example”import type { EditorExecContext } from '@toolbox-web/grid';
// Internal editor template executionconst execEditor = (ctx: EditorExecContext) => { const input = document.createElement('input'); input.value = String(ctx.value); input.onkeydown = (e) => { if (e.key === 'Enter') ctx.commit(input.value); if (e.key === 'Escape') ctx.cancel(); }; return input;};Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
row | T | |
value | unknown | |
field | string | |
column | ColumnInternal<T> | |
commit | (newValue: unknown) => void | |
cancel | () => void |
See Also
Section titled “See Also”ColumnEditorContextfor public editor contextCellContextfor base cell context
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