Skip to main content

Home > blockly > WorkspaceSvg > createDom

WorkspaceSvg.createDom() method

Create the workspace DOM elements.

Signature:

createDom(opt_backgroundClass?: string, injectionDiv?: HTMLElement): Element;

Parameters

ParameterTypeDescription
opt_backgroundClassstring(Optional) Either 'blocklyMainBackground' or 'blocklyMutatorBackground'.
injectionDivHTMLElement(Optional)

Returns:

Element

The workspace's SVG group.