# PivotAggregateMenuOpenEvent (@salmonui/pivot-table)

> The PivotAggregateMenuOpenEvent interface of @salmonui/pivot-table: onBeforeAggregateMenuOpen.

Canonical: https://salmonui.dev/docs/reference/pivot-table/PivotAggregateMenuOpenEvent

```ts
import type { PivotAggregateMenuOpenEvent } from '@salmonui/pivot-table';
```

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

## Reference

Kind: interface

```ts
interface PivotAggregateMenuOpenEvent extends PivotEvent {
    readonly field: string;
    readonly index: number;
    readonly items: PivotAggregate[];
}
```

`onBeforeAggregateMenuOpen`.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `field` | `readonly field: string;` |  |  |
| `index` | `readonly index: number;` |  | Position in `pivotModel.values`. |
| `items` | `readonly items: PivotAggregate[];` |  | Aggregates offered; edit with `items` (mutable copy). |
| `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). |
