Function: blockToDom()
function blockToDom(block, opt_noId?): Element | DocumentFragment;
Defined in: packages/blockly/core/xml.ts:185
Encode a block subtree as XML.
Parameters
| Parameter | Type | Description |
|---|---|---|
block | Block | The root block to encode. |
opt_noId? | boolean | True if the encoder should skip the block ID. |
Returns
Element | DocumentFragment
Tree of XML elements or an empty document fragment if the block was an insertion marker.