blockly > common > setParentContainer

common.setParentContainer() 函数

设置父级容器。这是在首次调用 Blockly.inject 时,WidgetDiv、DropDownDiv 和提示会渲染到的容器元素。如果在第一个 Blockly.inject 之后调用,则此方法为 NOP。

Signature:

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

参数

参数 类型 说明
newParent 元素 容器元素。

返回

void