Home > blockly > WorkspaceSvg > createDom
WorkspaceSvg.createDom() method
Create the workspace DOM elements.
Signature:
createDom(opt_backgroundClass?: string, injectionDiv?: HTMLElement): Element;
Parameters
| Parameter | Type | Description |
|---|---|---|
| opt_backgroundClass | string | (Optional) Either 'blocklyMainBackground' or 'blocklyMutatorBackground'. |
| injectionDiv | HTMLElement | (Optional) |
Returns:
Element
The workspace's SVG group.