# PivotExpandedChangeEvent (@salmonui/pivot-table)

> The PivotExpandedChangeEvent interface of @salmonui/pivot-table: onBeforeExpandedChange / onExpandedChange.

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

```ts
import type { PivotExpandedChangeEvent } 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 PivotExpandedChangeEvent extends PivotEvent {
    readonly action: 'expand' | 'collapse' | 'expandAll' | 'collapseAll';
    readonly path: PivotMemberPath | null;
    readonly axis: 'rows' | 'columns' | null;
    readonly expanded: boolean;
}
```

`onBeforeExpandedChange` / `onExpandedChange`.

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `action` | `readonly action: 'expand' \| 'collapse' \| 'expandAll' \| 'collapseAll';` |  |  |
| `path` | `readonly path: PivotMemberPath \| null;` |  | The member drilled, or null for expand / collapse all. |
| `axis` | `readonly axis: 'rows' \| 'columns' \| null;` |  |  |
| `expanded` | `readonly expanded: boolean;` |  |  |
| `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). |
