Skip to main content

Home > blockly > utils > toolbox

utils.toolbox namespace

Enumerations

EnumerationDescription
PositionPosition of the toolbox and/or flyout relative to the workspace.

Functions

FunctionDescription
parseToolboxTree(toolboxDef)Parse the provided toolbox tree into a consistent DOM format.

Interfaces

InterfaceDescription
BlockInfoThe information needed to create a block in the toolbox. Note that disabled has a different type for backwards compatibility.
ButtonInfoThe information needed to create a button in the toolbox.
DynamicCategoryInfoThe information needed to create a custom category.
LabelInfoThe information needed to create a label in the toolbox.
SeparatorInfoThe information needed to create a separator in the toolbox.
StaticCategoryInfoThe information needed to create a category in the toolbox.
ToolboxInfoThe JSON definition of a toolbox.

Variables

VariableDescription
TEST_ONLY

Type Aliases

Type AliasDescription
ButtonOrLabelInfoThe information needed to create either a button or a label in the flyout.
CategoryInfoThe information needed to create either a dynamic or static category.
FlyoutDefinitionAll of the different types that can be used to show items in a flyout.
FlyoutItemInfoAll the different types that can be displayed in a flyout.
FlyoutItemInfoArrayAn array holding flyout items.
ToolboxDefinitionAll of the different types that can create a toolbox.
ToolboxItemInfoAny information that can be used to create an item in the toolbox.