UNPKG

@mui/x-tree-view

Version:

The community edition of the MUI X Tree View components.

28 lines 1.75 kB
import { TreeViewState } from "../../models/index.js"; import { UseTreeViewExpansionSignature } from "./useTreeViewExpansion.types.js"; export declare const expansionSelectors: { /** * Gets the expanded items as provided to the component. */ expandedItemsRaw: (state: TreeViewState<[UseTreeViewExpansionSignature]>) => string[]; /** * Gets the expanded items as a Map. */ expandedItemsMap: (args_0: import("../../corePlugins/useTreeViewId/useTreeViewId.types.js").UseTreeViewIdState & import("./useTreeViewExpansion.types.js").UseTreeViewExpansionState & Partial<{}>) => 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: import("../../corePlugins/useTreeViewId/useTreeViewId.types.js").UseTreeViewIdState & import("./useTreeViewExpansion.types.js").UseTreeViewExpansionState & Partial<{}>) => string[]; /** * Gets the slot that triggers the item's expansion when clicked. */ triggerSlot: (state: TreeViewState<[UseTreeViewExpansionSignature]>) => "content" | "iconContainer"; /** * Checks whether an item is expanded. */ isItemExpanded: (args_0: import("../../corePlugins/useTreeViewId/useTreeViewId.types.js").UseTreeViewIdState & import("./useTreeViewExpansion.types.js").UseTreeViewExpansionState & Partial<{}>, itemId: string) => boolean; /** * Checks whether an item is expandable. */ isItemExpandable: (args_0: import("../../corePlugins/useTreeViewId/useTreeViewId.types.js").UseTreeViewIdState & import("../useTreeViewItems/index.js").UseTreeViewItemsState<import("../../../index.js").TreeViewDefaultItemModelProperties> & Partial<{}>, _itemId: string) => boolean; };