@mui/x-tree-view
Version:
The community edition of the MUI X Tree View components.
13 lines • 679 B
TypeScript
import { MinimalTreeViewState } from "../../MinimalTreeViewStore/index.js";
export declare const idSelectors: {
/**
* Get the id attribute of the tree view.
*/
treeId: (state: MinimalTreeViewState<any, any>) => string | undefined;
/**
* Generate the id attribute (i.e.: the `id` attribute passed to the DOM element) of a Tree Item.
* If the user explicitly defined an id attribute, it will be returned.
* Otherwise, the method creates a unique id for the item based on the Tree View id attribute and the item `itemId`
*/
treeItemIdAttribute: (args_0: MinimalTreeViewState<any, any>, itemId: string, providedIdAttribute: string | undefined) => string;
};