# DataGridContextMenuItemClickEvent (@salmonui/data-grid)

> The DataGridContextMenuItemClickEvent interface of @salmonui/data-grid: onContextMenuItemClick; preventDefault() skips the built-in action.

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

```ts
import type { DataGridContextMenuItemClickEvent } 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 DataGridContextMenuItemClickEvent<Row> extends DataGridEvent {
    readonly item: DataGridMenuItem;
    readonly target: DataGridContextMenuTarget;
    readonly rowIds: readonly RowId[];
    rows(): readonly Row[];
}
```

`onContextMenuItemClick`; `preventDefault()` skips the built-in action.

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `item` | `readonly item: DataGridMenuItem;` |  |  |
| `target` | `readonly target: DataGridContextMenuTarget;` |  |  |
| `rowIds` | `readonly rowIds: readonly RowId[];` |  | The target row, or the selection when the target row is selected; empty for header and pager targets. Lazy. |
| `rows` | `rows(): readonly Row[];` |  | Row objects of `rowIds`. |
| `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). |
