# DataGridColumnMenuOpenEvent (@salmonui/data-grid)

> The DataGridColumnMenuOpenEvent interface of @salmonui/data-grid: onBeforeColumnMenuOpen (cancellable: the menu stays closed).

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

```ts
import type { DataGridColumnMenuOpenEvent } 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: interface

```ts
interface DataGridColumnMenuOpenEvent<Row> extends DataGridEvent {
    readonly field: string;
    readonly column: DataGridColumnInfo<Row>;
    readonly items: DataGridMenuItem[];
}
```

`onBeforeColumnMenuOpen` (cancellable: the menu stays closed).

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `field` | `readonly field: string;` |  |  |
| `column` | `readonly column: DataGridColumnInfo<Row>;` |  |  |
| `items` | `readonly items: DataGridMenuItem[];` |  | Mutable copy of the resolved items; edit the array in place (`splice`, `push`) to hide or add items for this column. The field itself is read-only. |
| `type` | `type: string;` | inherited | `'sortChange'`, `'beforeSortChange'`, ... |
| `source` | `source: DataGridEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited | True after `preventDefault()` (before-events and click events). |
| `preventDefault` | `preventDefault: () => void;` | inherited | Before-events and click events: cancels the action (or the built-in behavior). |
