blockly > ToolboxCategory > (constructor)

ToolboxCategory.(constructor)

Konstruiert eine neue Instanz der Klasse ToolboxCategory

Unterschrift:

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

Parameter

Parameter Typ Beschreibung
categoryDef CategoryInfo Die Informationen, die zum Erstellen einer Kategorie in der Toolbox erforderlich sind.
parentToolbox IToolbox Die übergeordnete Toolbox der Kategorie.
opt_parent ICollapsibleToolboxItem (Optional) Die übergeordnete Kategorie oder null, wenn die Kategorie kein übergeordnetes Element hat.