UNPKG

@mui/x-tree-view

Version:

The community edition of the MUI X Tree View components.

22 lines 963 B
import { ExtendableRichTreeViewStore } from "../../RichTreeViewStore/RichTreeViewStore.js"; import { TreeViewItemId } from "../../../models/index.js"; export declare class TreeViewLabelEditingPlugin { private store; constructor(store: ExtendableRichTreeViewStore<any, any>); buildPublicAPI: () => { setEditedItem: (itemId: TreeViewItemId | null) => void; updateItemLabel: (itemId: TreeViewItemId, label: string) => void; }; /** * Set which item is currently being edited. * You can pass `null` to exit editing mode. * @param {TreeViewItemId | null} itemId The id of the item to edit, or `null` to exit editing mode. */ setEditedItem: (itemId: TreeViewItemId | null) => void; /** * Used to update the label of an item. * @param {TreeViewItemId} itemId The id of the item to update the label of. * @param {string} label The new label of the item. */ updateItemLabel: (itemId: TreeViewItemId, label: string) => void; }