blockly > WorkspaceSvg > updateToolbox
WorkspaceSvg.updateToolbox() method
Modify the block tree on the existing toolbox.
Signature:
updateToolbox(toolboxDef: toolbox.ToolboxDefinition | null): void;
Parameters
Parameter | Type | Description |
---|---|---|
toolboxDef | toolbox.ToolboxDefinition | null | DOM tree of toolbox contents, string of toolbox contents, or JSON representing toolbox definition. |
Returns:
void