# PluginEventName

> _Since v0.1.1_

Plugin event-name constants (mirrors `DGEvents` pattern).

Union type of all plugin event names.

```ts
type PluginEventName = typeof PluginEvents[keyof typeof PluginEvents]
```

## Runtime Values

Use `PluginEvents` to reference these values from runtime code:

```ts
const PluginEvents = {
  SELECTION_CHANGE: 'selection-change',
  TREE_EXPAND: 'tree-expand',
  TREE_LOAD_START: 'tree-load-start',
  TREE_LOAD_END: 'tree-load-end',
  TREE_LOAD_ERROR: 'tree-load-error',
  FILTER_CHANGE: 'filter-change',
  SORT_MODEL_CHANGE: 'sort-model-change',
  EXPORT_START: 'export-start',
  EXPORT_COMPLETE: 'export-complete',
  CLIPBOARD_COPY: 'clipboard-copy',
  CLIPBOARD_PASTE: 'clipboard-paste',
  CONTEXT_MENU_OPEN: 'context-menu-open',
  CONTEXT_MENU_CLOSE: 'context-menu-close',
  HISTORY_CHANGE: 'history-change',
  SERVER_LOADING: 'server-loading',
  SERVER_ERROR: 'server-error',
  COLUMN_VISIBILITY_CHANGE: 'column-visibility-change',
  COLUMN_REORDER: 'column-reorder',
  DETAIL_EXPAND: 'detail-expand',
  GROUP_EXPAND: 'group-expand',
} as const;
```

| Key | Value |
| --- | ----- |
| `SELECTION_CHANGE` | `'selection-change'` |
| `TREE_EXPAND` | `'tree-expand'` |
| `TREE_LOAD_START` | `'tree-load-start'` |
| `TREE_LOAD_END` | `'tree-load-end'` |
| `TREE_LOAD_ERROR` | `'tree-load-error'` |
| `FILTER_CHANGE` | `'filter-change'` |
| `SORT_MODEL_CHANGE` | `'sort-model-change'` |
| `EXPORT_START` | `'export-start'` |
| `EXPORT_COMPLETE` | `'export-complete'` |
| `CLIPBOARD_COPY` | `'clipboard-copy'` |
| `CLIPBOARD_PASTE` | `'clipboard-paste'` |
| `CONTEXT_MENU_OPEN` | `'context-menu-open'` |
| `CONTEXT_MENU_CLOSE` | `'context-menu-close'` |
| `HISTORY_CHANGE` | `'history-change'` |
| `SERVER_LOADING` | `'server-loading'` |
| `SERVER_ERROR` | `'server-error'` |
| `COLUMN_VISIBILITY_CHANGE` | `'column-visibility-change'` |
| `COLUMN_REORDER` | `'column-reorder'` |
| `DETAIL_EXPAND` | `'detail-expand'` |
| `GROUP_EXPAND` | `'group-expand'` |

## See Also

- [`DataGridEventMap`](/grid/api/core/interfaces/datagrideventmap.md)
