blockly > utils > toolbox
Enumerations
Enumeration |
Description |
Position |
Position of the toolbox and/or flyout relative to the workspace. |
Functions
Interfaces
Interface |
Description |
BlockInfo |
The information needed to create a block in the toolbox. Note that disabled has a different type for backwards compatibility. |
ButtonInfo |
The information needed to create a button in the toolbox. |
DynamicCategoryInfo |
The information needed to create a custom category. |
LabelInfo |
The information needed to create a label in the toolbox. |
SeparatorInfo |
The information needed to create a separator in the toolbox. |
StaticCategoryInfo |
The information needed to create a category in the toolbox. |
ToolboxInfo |
The JSON definition of a toolbox. |
Variables
Type Aliases
Type Alias |
Description |
ButtonOrLabelInfo |
The information needed to create either a button or a label in the flyout. |
CategoryInfo |
The information needed to create either a dynamic or static category. |
FlyoutDefinition |
All of the different types that can be used to show items in a flyout. |
FlyoutItemInfo |
All the different types that can be displayed in a flyout. |
FlyoutItemInfoArray |
An array holding flyout items. |
ToolboxDefinition |
All of the different types that can create a toolbox. |
ToolboxItemInfo |
Any information that can be used to create an item in the toolbox. |
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 `utils.toolbox` namespace provides tools for managing and interacting with Blockly's toolbox, which houses blocks and other elements users can drag onto the workspace."],["It includes interfaces for defining various toolbox items like buttons, labels, categories, and separators, along with type aliases for organizing these definitions."],["The namespace offers a function, `parseToolboxTree`, to convert toolbox definitions into a consistent structure for Blockly to use."],["Enums and variables like `Position` and `TEST_ONLY` further aid in configuring and testing toolbox behavior."],["Developers can utilize these components to create and customize toolboxes that enhance the user's experience with Blockly."]]],[]]