UNPKG

@mui/x-tree-view

Version:

The community edition of the MUI X Tree View components.

27 lines 1.06 kB
import { MinimalTreeViewState } from "../../MinimalTreeViewStore/index.js"; export declare const expansionSelectors: { /** * Gets the expanded items as provided to the component. */ expandedItemsRaw: (state: MinimalTreeViewState<any, any>) => readonly string[]; /** * Gets the expanded items as a Map. */ expandedItemsMap: (args_0: MinimalTreeViewState<any, any>) => Map<string, true>; /** * Gets the items to render as a flat list (the descendants of an expanded item are listed as siblings of the item). */ flatList: (args_0: MinimalTreeViewState<any, any>) => string[]; /** * Gets the slot that triggers the item's expansion when clicked. */ triggerSlot: (state: MinimalTreeViewState<any, any>) => "content" | "iconContainer"; /** * Checks whether an item is expanded. */ isItemExpanded: (args_0: MinimalTreeViewState<any, any>, itemId: string) => boolean; /** * Checks whether an item is expandable. */ isItemExpandable: (args_0: MinimalTreeViewState<any, any>, _itemId: string) => boolean; };