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
| Parameter | Type | Description |
|---|---|---|
| newParent | Element | The container element. |
Returns:
void