Class for a category in a toolbox.
The information needed to create a category in the toolbox.
The parent toolbox for the category.
Optionalopt_parent: ICollapsibleToolboxItemThe parent category or null if the category does not have a parent.
Dispose of this toolbox item. No-op by default.
Gets the HTML element that is clickable. The parent toolbox element receives clicks. The parent toolbox will add an ID to this element so it can pass the onClick event to the correct toolboxItem.
The HTML element that receives clicks.
Gets the contents of the category. These are items that are meant to be displayed in the flyout.
The definition of items to be displayed in the flyout.
Gets a unique identifier for this toolbox item.
The ID for the toolbox item.
Gets the name of the category. Used for emitting events.
The name of the toolbox item.
Gets the parent if the toolbox item is nested.
The parent toolbox item, or null if this toolbox item is not nested.
Hide the category.
Initializes the toolbox item. This includes creating the DOM and updating the state of any items based on the info object.
Whether the toolbox item is collapsible.
True if the toolbox item is collapsible.
Whether the toolbox item is selectable.
True if the toolbox item can be selected.
Whether the category is visible. A category is only visible if all of its ancestors are expanded and isHidden_ is false.
True if the category is visible, false otherwise.
Updates the colour for this category.
Sets whether the category is disabled.
True to disable the category, false otherwise.
Sets the current category as selected.
True if this category is selected, false otherwise.
Show the category. Category will only appear if its parent category is also expanded.
Updates the contents to be displayed in the flyout. If the flyout is open when the contents are updated, refreshSelection on the toolbox must also be called.
The contents to be displayed in the flyout. A string can be supplied to create a dynamic category.
Fake class which should be extended to avoid inheriting static properties