Stay organized with collections Save and categorize content based on your preferences.

blockly > IToolboxItem

IToolboxItem interface

Interface for an item in the toolbox.

Signature:

export interface IToolboxItem 

Methods

Method Description
dispose() Dispose of this toolbox item. No-op by default.
getClickTarget() Gets the HTML element that is clickable.
getDiv() Gets the div for the toolbox item.
getId() Gets a unique identifier for this toolbox item.
getParent() Gets the parent if the toolbox item is nested.
init() Initializes the toolbox item. This includes creating the DOM and updating the state of any items based on the info object.
isCollapsible() Whether the toolbox item is collapsible.
isSelectable() Whether the toolbox item is selectable.
setVisible_(isVisible) Sets whether the category is visible or not. For a category to be visible its parent category must also be expanded.