Skip to main content

Home > 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

ParameterTypeDescription
toolboxDefElement | null | stringDOM tree of blocks, or text representation of same.

Returns:

Element | null

DOM tree of blocks, or null.