# DataGridUiCommand (@salmonui/data-grid)

> The DataGridUiCommand type of @salmonui/data-grid: 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.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridUiCommand

```ts
import type { DataGridUiCommand } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: type

```ts
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.
