研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >通用 >setParentContainer
common.setParentContainer() 函数
设置父级容器。这是在首次调用 Blockly.inject
时呈现 WidgetDiv、DropDownDiv 和 tooltip 的容器元素。如果在第一个 Blockly.inject
之后调用,则此方法是 NOP。
Signature:
export declare function setParentContainer(newParent: Element): void;
参数
参数 |
类型 |
说明 |
newParent |
元素 |
容器元素。 |
返回:
void
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-29。
[null,null,["最后更新时间 (UTC):2024-08-29。"],[[["The `setParentContainer` function designates the container for UI elements like WidgetDiv, DropDownDiv, and Tooltip during the initial Blockly injection."],["It accepts an HTML element as the new parent container for these Blockly UI elements."],["Calling this function after the first `Blockly.inject` has no effect."]]],[]]