# TreeSelectValueChangeEvent (@salmonui/dropdowns/tree-select)

> The TreeSelectValueChangeEvent interface of @salmonui/dropdowns/tree-select: Second argument of onValueChange: frozen, read-only. items is materialized on first read.

Canonical: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectValueChangeEvent

```ts
import type { TreeSelectValueChangeEvent } from '@salmonui/dropdowns/tree-select';
```

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

## Reference

Kind: interface

```ts
interface DropdownValueChangeEvent<Item> {
    readonly source: DropdownEventSource;
    readonly reason: DropdownValueChangeReason;
    readonly previousValue: readonly DropdownValue[];
    readonly items: readonly Item[];
}
```

Second argument of `onValueChange`: frozen, read-only. `items` is materialized on first read.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `source` | `readonly source: DropdownEventSource;` |  |  |
| `reason` | `readonly reason: DropdownValueChangeReason;` |  |  |
| `previousValue` | `readonly previousValue: readonly DropdownValue[];` |  |  |
| `items` | `readonly items: readonly Item[];` |  | Items of the new value (loaded data, `selectedItems` or created items); computed on first read. |
