Skip to main content

Home > blockly > ToolboxItem > (constructor)

ToolboxItem.(constructor)

Constructs a new instance of the ToolboxItem class

Signature:

constructor(toolboxItemDef: toolbox.ToolboxItemInfo, parentToolbox: IToolbox, opt_parent?: ICollapsibleToolboxItem);

Parameters

ParameterTypeDescription
toolboxItemDeftoolbox.ToolboxItemInfoThe JSON defining the toolbox item.
parentToolboxIToolboxThe toolbox that holds the toolbox item.
opt_parentICollapsibleToolboxItem(Optional) The parent toolbox item or null if the category does not have a parent.