Home > blockly > Flyout > createDom
Flyout.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 <svg> or <g>. |
Returns:
SVGElement
The flyout's SVG group.