blockly > common > setParentContainer
Common.setParentContainer() 函式
設定父項容器。這是 WidgetDiv、DropDownDiv 和工具提示的容器元素,會在第一次呼叫 Blockly.inject
時轉譯。如果在第一個 Blockly.inject
之後呼叫,此方法便是 NOP。
Signature:
export declare function setParentContainer(newParent: Element): void;
參數
參數 | 類型 | 說明 |
---|---|---|
newParent | 元素 | 容器元素。 |
傳回:
void