blockly > ToolboxItem > (constructor)
ToolboxItem.(constructor)
Constructs a new instance of the ToolboxItem class
Signature:
constructor(toolboxItemDef: toolbox.ToolboxItemInfo, parentToolbox: IToolbox, opt_parent?: ICollapsibleToolboxItem);
Parameters
Parameter | Type | Description |
|---|---|---|
toolboxItemDef | The JSON defining the toolbox item. | |
parentToolbox | The toolbox that holds the toolbox item. | |
opt_parent | (Optional) The parent toolbox item or null if the category does not have a parent. |