Function: domToBlock()
function domToBlock(xmlBlock, workspace): Block;
Defined in: packages/blockly/core/xml.ts:614
Decode an XML block tag and create a block (and possibly sub blocks) on the workspace.
Parameters
| Parameter | Type | Description |
|---|---|---|
xmlBlock | Element | XML block element. |
workspace | Workspace | The workspace. |
Returns
The root block created.