blockly > IFlyout > createDom

IFlyout.createDom() method

Creates the flyout's DOM. Only needs to be called once. The flyout can either exist as its own svg element or be a g element nested inside a separate svg element.

Signature:

createDom(tagName: string | Svg<SVGSVGElement> | Svg<SVGGElement>): SVGElement;

Parameters

Parameter Type Description
tagName string | Svg<SVGSVGElement> | Svg<SVGGElement> The type of tag to put the flyout in. This should be or .

Returns:

SVGElement

The flyout's SVG group.