Skip to main content

Home > blockly > ToolboxCategory > (constructor)

ToolboxCategory.(constructor)

Constructs a new instance of the ToolboxCategory class

Signature:

constructor(categoryDef: CategoryInfo, parentToolbox: IToolbox, opt_parent?: ICollapsibleToolboxItem);

Parameters

ParameterTypeDescription
categoryDefCategoryInfoThe information needed to create a category in the toolbox.
parentToolboxIToolboxThe parent toolbox for the category.
opt_parentICollapsibleToolboxItem(Optional) The parent category or null if the category does not have a parent.