# TreeViewBeforeExpandedChangeEvent (@salmonui/navigation/tree-view)

> The TreeViewBeforeExpandedChangeEvent interface of @salmonui/navigation/tree-view.

Canonical: https://salmonui.dev/docs/reference/navigation/tree-view/TreeViewBeforeExpandedChangeEvent

```ts
import type { TreeViewBeforeExpandedChangeEvent } from '@salmonui/navigation/tree-view';
```

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

## Reference

Kind: interface

```ts
interface TreeViewBeforeExpandedChangeEvent<T> extends TreeViewCancelableEvent {
    readonly id: TreeViewKey;
    readonly item: T;
    readonly expanded: boolean;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: TreeViewKey;` |  |  |
| `item` | `readonly item: T;` |  |  |
| `expanded` | `readonly expanded: boolean;` |  | The proposed state. |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `source` | `source: TreeViewEventSource;` | inherited |  |
