blockly > ICollapsibleToolboxItem

ICollapsibleToolboxItem interface

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

Signature:

export interface ICollapsibleToolboxItem extends ISelectableToolboxItem 

Extends: ISelectableToolboxItem

Methods

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.