UNPKG

@mui/x-tree-view

Version:

The community edition of the MUI X Tree View components.

15 lines 635 B
import { TreeViewItemId } from "../../../models/index.js"; import { TreeViewItemMeta } from "../../models/index.js"; export declare const TREE_VIEW_ROOT_PARENT_ID = "__TREE_VIEW_ROOT_PARENT_ID__"; export declare const buildSiblingIndexes: (siblings: string[]) => { [itemId: string]: number; }; /** * Check if an item is disabled. * This method should only be used in selectors that are checking if several items are disabled. * Otherwise, use the `selectorIsItemDisabled` selector. * @returns */ export declare const isItemDisabled: (itemMetaLookup: { [itemId: string]: TreeViewItemMeta; }, itemId: TreeViewItemId) => boolean;