blockly > utils > 工具箱 > parseToolboxTree
utils.toolbox.parseToolboxTree() 函数
将提供的工具箱树解析为一致的 DOM 格式。
Signature:
export declare function parseToolboxTree(toolboxDef: Element | null | string): Element | null;
参数
参数 | 类型 | 说明 |
---|---|---|
toolboxDef | 元素 | null | 字符串 | DOM 树的块,或者相同的文本表示。 |
返回:
元素 | null
DOM 块树,或 null。