Skip to main content

Home > blockly > WorkspaceSvg > updateToolbox

WorkspaceSvg.updateToolbox() method

Modify the block tree on the existing toolbox.

Signature:

updateToolbox(toolboxDef: toolbox.ToolboxDefinition | null): void;

Parameters

ParameterTypeDescription
toolboxDeftoolbox.ToolboxDefinition | nullDOM tree of toolbox contents, string of toolbox contents, or JSON representing toolbox definition.

Returns:

void