封鎖 >一般 >setParentContainer

Common.setParentContainer() 函式

設定父項容器。這是容器元素,系統會在首次呼叫 Blockly.inject 時算繪 WidgetDiv、DropDownDiv 和工具提示。如果在第一個 Blockly.inject 之後呼叫,這個方法就會是 NOP。

Signature:

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

參數

參數 類型 說明
newParent 元素 容器元素。

傳回:

void