blockly > Toolbox > addToolboxItem_
Adds an item to the toolbox.
Signature:
protected addToolboxItem_(toolboxItem: IToolboxItem): void;
Parameters
Parameter |
Type |
Description |
toolboxItem |
IToolboxItem |
The item in the toolbox. |
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 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"]]