blockly > ICollapsibleToolboxItem

ICollapsibleToolboxItem interface

Interface for an item in the toolbox that can be collapsed.


export interface ICollapsibleToolboxItem extends ISelectableToolboxItem 

Extends: ISelectableToolboxItem


Method Description
getChildToolboxItems() Gets any children toolbox items. (ex. Gets the subcategories)
isExpanded() Whether the toolbox item is expanded to show its child subcategories.
toggleExpanded() Toggles whether or not the toolbox item is expanded.