Skip to content

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.

import type { EditorExecContext } from '@toolbox-web/grid';
// Internal editor template execution
const 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;
};
PropertyTypeDescription
rowT
valueunknown
fieldstring
columnColumnInternal<T>
commit(newValue: unknown) => void
cancel() => void
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