View as Markdown

API reference: @salmonui/data-grid

DataGridUiCommandtype

import type { DataGridUiCommand } from '@salmonui/data-grid';
type DataGridUiCommand = 'edit.add' | 'edit.begin' | 'edit.delete' | 'edit.save' | 'edit.cancel' | 'clipboard.copy' | 'export.excel' | 'export.pdf' | 'export.csv' | 'grid.print';

Named UI commands the toolbar and menus run. A handler registered with api.registerCommandHandler wins; otherwise a module that declares the command type receives it through dispatch; otherwise the command is a no-op with a development warning.