blockly > Toolbox > addToolboxItem_
Fügt der Toolbox ein Element hinzu.
Unterschrift:
protected addToolboxItem_(toolboxItem: IToolboxItem): void;
Parameter
Parameter |
Typ |
Beschreibung |
toolboxItem |
IToolboxItem |
Das Element in der Toolbox. |
Gibt zurück:
voidm
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-21 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-08-21 (UTC)."],[[["The `addToolboxItem_` method is used to add items to the Blockly toolbox."],["It's a protected method that takes an `IToolboxItem` as input, representing the item to be added."],["The method has no return value and modifies the toolbox directly by adding the specified item."]]],["The `addToolboxItem_()` method adds an item to a toolbox. It accepts a single parameter, `toolboxItem`, which is of type `IToolboxItem`. This parameter represents the item to be added to the toolbox. The method's return type is void, indicating it does not return any value. The method is used for managing the contents of a toolbox by adding items.\n"]]