blockly > utils > toolbox > parseToolboxTree

utils.toolbox.parseToolboxTree() function

Parse the provided toolbox tree into a consistent DOM format.

Signature:

export declare function parseToolboxTree(toolboxDef: Element | null | string): Element | null;

Parameters

Parameter Type Description
toolboxDef Element | null | string DOM tree of blocks, or text representation of same.

Returns:

Element | null

DOM tree of blocks, or null.