Skip to content

CellEditor

Vue render function or component for cell editing.

Can be either:

  • A render function receiving ColumnEditorContext and returning a VNode
  • A Vue component (SFC or defineComponent)
type CellEditor = (ctx: ColumnEditorContext<TRow, TValue>) => VNode | Component
import type { CellEditor, ColumnConfig } from '@toolbox-web/grid-vue';
const statusEditor: CellEditor<Employee, string> = (ctx) =>
h(StatusSelect, {
modelValue: ctx.value,
'onUpdate:modelValue': ctx.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