Skip to content

ExternalMountEditorDetail

Since v0.1.1

Event detail for mounting external editor renderers.

Emitted when a cell uses an external editor component spec and needs the framework adapter to mount the editor with commit/cancel bindings.

// Framework adapter listens for this event
grid.on('mount-external-editor', ({ placeholder, spec, context }) => {
// Mount framework editor with commit/cancel wired
mountEditor(spec.component, placeholder, {
value: context.value,
onCommit: context.commit,
onCancel: context.cancel,
});
});
PropertyTypeDescription
placeholderHTMLElement
specunknown
context{ row: TRow; value: unknown; field: string; column: unknown; commit: (v: unknown) => void; cancel: () => void }