UNPKG

@mui/x-tree-view

Version:

The community edition of the MUI X Tree View components.

23 lines (22 loc) 639 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TreeViewItemPluginManager = void 0; /** * Manages the registration and application of plugins for the Tree Item. * This will be replaced with a proper implementation in the future. */ class TreeViewItemPluginManager { itemPlugins = []; itemWrappers = []; register = (plugin, wrapItem) => { this.itemPlugins.push(plugin); if (wrapItem) { this.itemWrappers.push(wrapItem); } }; listPlugins = () => this.itemPlugins; listWrappers = () => this.itemWrappers; } exports.TreeViewItemPluginManager = TreeViewItemPluginManager;