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

> The TreeSelectMultipleProps interface of @salmonui/dropdowns/tree-select.

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

```ts
import type { TreeSelectMultipleProps } 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 TreeSelectMultipleProps<Item> extends TreeSelectOwnProps<Item> {
    readonly multiple: true;
    readonly value?: readonly DropdownValue[];
    readonly defaultValue?: readonly DropdownValue[];
    readonly onValueChange?: (value: readonly DropdownValue[], event: DropdownValueChangeEvent<Item>) => void;
}
```

Members (66):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `multiple` | `readonly multiple: true;` |  |  |
| `value` | `readonly value?: readonly DropdownValue[];` | optional |  |
| `defaultValue` | `readonly defaultValue?: readonly DropdownValue[];` | optional |  |
| `onValueChange` | `readonly onValueChange?: (value: readonly DropdownValue[], event: DropdownValueChangeEvent<Item>) => void;` | optional |  |
| `data` | `data: readonly Item[];` | inherited | Items: nested (`getChildren`) or flat (`getParentId`). |
| `getItemValue` | `getItemValue?: ((item: Item) => TreeSelectValue);` | optional, inherited | Default: `item.value`, or `item.id` when there is no `value` field. |
| `getItemLabel` | `getItemLabel?: ((item: Item) => string);` | optional, inherited | Default: `item.label`, else `item.text`, else the value. |
| `getChildren` | `getChildren?: ((item: Item) => readonly Item[] \| null \| undefined);` | optional, inherited | Nested data: the children of an item. Default `item.children`. |
| `getParentId` | `getParentId?: ((item: Item) => TreeSelectValue \| null \| undefined);` | optional, inherited | Flat (self-referential) data: the parent value of an item; replaces `getChildren`. |
| `hasChildren` | `hasChildren?: ((item: Item) => boolean);` | optional, inherited | Shows an expand twisty before the children are known; expanding then calls `loadChildren`. |
| `loadChildren` | `loadChildren?: ((item: Item, options: { readonly signal: AbortSignal; }) => Promise<readonly Item[]>);` | optional, inherited | Load on demand: the children of `item` (aborted through `signal` when stale). |
| `onLoadError` | `onLoadError?: ((error: unknown, item: Item) => void);` | optional, inherited |  |
| `isItemDisabled` | `isItemDisabled?: ((item: Item) => boolean);` | optional, inherited | Default: `item.disabled === true`. A disabled parent disables its subtree. |
| `isItemSelectable` | `isItemSelectable?: ((item: Item) => boolean);` | optional, inherited | Nodes that cannot be chosen still expand (default: every enabled node). |
| `getItemIcon` | `getItemIcon?: ((item: Item) => ReactNode);` | optional, inherited |  |
| `getItemProps` | `getItemProps?: ((item: Item) => (DropdownPartProps & { readonly title?: string \| undefined; }) \| undefined);` | optional, inherited | Pure per-item props merged onto the rendered `treeitem` (`title`, `data-*`, `className`, `style`). |
| `selectedItems` | `selectedItems?: readonly Item[];` | optional, inherited | Items of the current value that are not in loaded `data` (lazily loaded nodes): their labels. |
| `expanded` | `expanded?: readonly TreeSelectValue[];` | optional, inherited |  |
| `defaultExpanded` | `defaultExpanded?: readonly TreeSelectValue[];` | optional, inherited |  |
| `onExpandedChange` | `onExpandedChange?: ((expanded: readonly TreeSelectValue[], event: TreeSelectExpandedChangeEvent<Item>) => void);` | optional, inherited |  |
| `expandOn` | `expandOn?: TreeSelectExpandOn;` | optional, inherited |  |
| `open` | `open?: boolean;` | optional, inherited |  |
| `defaultOpen` | `defaultOpen?: boolean;` | optional, inherited |  |
| `onOpenChange` | `onOpenChange?: ((open: boolean, event: DropdownOpenChangeEvent) => void);` | optional, inherited |  |
| `popupMode` | `popupMode?: "auto" \| "popover" \| "sheet";` | optional, inherited | `'popover'` (default), `'sheet'` (full-screen dialog) or `'auto'` (the sheet on coarse-pointer phones, decided at open time). |
| `searchable` | `searchable?: boolean;` | optional, inherited | A search field in the popup; matches keep their ancestors visible. |
| `searchPlaceholder` | `searchPlaceholder?: string;` | optional, inherited |  |
| `searchOperator` | `searchOperator?: "contains" \| "endsWith" \| "startsWith" \| ((item: Item, text: string) => boolean);` | optional, inherited |  |
| `matchCase` | `matchCase?: boolean;` | optional, inherited |  |
| `ignoreAccents` | `ignoreAccents?: boolean;` | optional, inherited |  |
| `onSearchChange` | `onSearchChange?: ((text: string, event: { readonly source: DropdownEventSource; }) => void);` | optional, inherited |  |
| `indicator` | `indicator?: "check" \| "checkbox";` | optional, inherited | `'checkbox'` (with `multiple`): tri-state checks; the value is every checked node. |
| `checkPropagation` | `checkPropagation?: "cascade" \| "none";` | optional, inherited | Checks of a parent and its descendants follow each other (default `'cascade'`). |
| `showSelectAll` | `showSelectAll?: boolean;` | optional, inherited |  |
| `closeOnSelect` | `closeOnSelect?: boolean;` | optional, inherited |  |
| `valueDisplay` | `valueDisplay?: "chips" \| "count" \| "text";` | optional, inherited |  |
| `maxVisibleValues` | `maxVisibleValues?: number;` | optional, inherited |  |
| `valueSeparator` | `valueSeparator?: string;` | optional, inherited |  |
| `showTrigger` | `showTrigger?: boolean;` | optional, inherited |  |
| `clearable` | `clearable?: boolean;` | optional, inherited |  |
| `placeholder` | `placeholder?: string;` | optional, inherited |  |
| `disabled` | `disabled?: boolean;` | optional, inherited |  |
| `readOnly` | `readOnly?: boolean;` | optional, inherited |  |
| `name` | `name?: string;` | optional, inherited |  |
| `required` | `required?: boolean;` | optional, inherited |  |
| `form` | `form?: string;` | optional, inherited |  |
| `id` | `id?: string;` | optional, inherited |  |
| `autoFocus` | `autoFocus?: boolean;` | optional, inherited |  |
| `maxVisibleItems` | `maxVisibleItems?: number;` | optional, inherited | Popup height in rows. Default 8. |
| `virtualization` | `virtualization?: boolean;` | optional, inherited | Windowed tree; on by default above 100 visible rows. |
| `locale` | `locale?: string;` | optional, inherited |  |
| `renderItem` | `renderItem?: ((props: TreeSelectItemRenderProps<Item>) => ReactNode);` | optional, inherited |  |
| `renderValue` | `renderValue?: ((props: { readonly items: readonly Item[]; readonly labels: readonly string[]; }) => ReactNode);` | optional, inherited |  |
| `renderEmpty` | `renderEmpty?: ((props: { readonly reason: "noData" \| "noMatch"; }) => ReactNode);` | optional, inherited |  |
| `renderError` | `renderError?: ((props: { readonly error: unknown; readonly item: Item; readonly retry: () => void; }) => ReactNode);` | optional, inherited |  |
| `renderLoading` | `renderLoading?: ((props: { readonly item: Item; }) => ReactNode);` | optional, inherited |  |
| `popupHeader` | `popupHeader?: ReactNode;` | optional, inherited |  |
| `popupFooter` | `popupFooter?: ReactNode;` | optional, inherited |  |
| `highlightMatches` | `highlightMatches?: boolean;` | optional, inherited |  |
| `size` | `size?: "lg" \| "md" \| "sm";` | optional, inherited | Control size: `'sm'` 24px, `'md'` 32px (default), `'lg'` 40px tall. |
| `localeText` | `localeText?: Partial<TreeSelectLocaleText>;` | optional, inherited |  |
| `className` | `className?: string;` | optional, inherited |  |
| `style` | `style?: CSSProperties;` | optional, inherited |  |
| `classNames` | `classNames?: Partial<Record<TreeSelectPart, string>>;` | optional, inherited |  |
| `styles` | `styles?: Partial<Record<TreeSelectPart, CSSProperties>>;` | optional, inherited |  |
| `ref` | `ref?: Ref<HTMLButtonElement>;` | optional, inherited | The trigger `<button role="combobox">`. |
