Skip to content

DGEventName

Event-name constants for DataGrid (public API).

Union type of all DataGrid event names.

type DGEventName = typeof DGEvents[keyof typeof DGEvents]

Use DGEvents to reference these values from runtime code:

const DGEvents = {
CELL_CHANGE: 'cell-change',
CELL_COMMIT: 'cell-commit',
ROW_COMMIT: 'row-commit',
EDIT_OPEN: 'edit-open',
EDIT_CLOSE: 'edit-close',
CHANGED_ROWS_RESET: 'changed-rows-reset',
MOUNT_EXTERNAL_VIEW: 'mount-external-view',
MOUNT_EXTERNAL_EDITOR: 'mount-external-editor',
SORT_CHANGE: 'sort-change',
COLUMN_RESIZE: 'column-resize',
CELL_ACTIVATE: 'cell-activate',
GROUP_TOGGLE: 'group-toggle',
COLUMN_STATE_CHANGE: 'column-state-change',
DATA_CHANGE: 'data-change',
TBW_SCROLL: 'tbw-scroll',
} as const;
KeyValue
CELL_CHANGE'cell-change'
CELL_COMMIT'cell-commit'
ROW_COMMIT'row-commit'
EDIT_OPEN'edit-open'
EDIT_CLOSE'edit-close'
CHANGED_ROWS_RESET'changed-rows-reset'
MOUNT_EXTERNAL_VIEW'mount-external-view'
MOUNT_EXTERNAL_EDITOR'mount-external-editor'
SORT_CHANGE'sort-change'
COLUMN_RESIZE'column-resize'
CELL_ACTIVATE'cell-activate'
GROUP_TOGGLE'group-toggle'
COLUMN_STATE_CHANGE'column-state-change'
DATA_CHANGE'data-change'
TBW_SCROLL'tbw-scroll'
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