Skip to main content

Home > blockly > common > setParentContainer

common.setParentContainer() function

Set the parent container. This is the container element that the WidgetDiv, DropDownDiv, and Tooltip are rendered into the first time Blockly.inject is called. This method is a NOP if called after the first Blockly.inject.

Signature:

export declare function setParentContainer(newParent: Element): void;

Parameters

ParameterTypeDescription
newParentElementThe container element.

Returns:

void