研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >IToolbox >渲染
用新的工具箱项填充工具箱并移除所有旧内容。
Signature:
render(toolboxDef: ToolboxInfo): void;
参数
返回:
void
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-15。
[null,null,["最后更新时间 (UTC):2024-10-15。"],[[["The `render()` method populates the toolbox with new items based on provided information and clears any existing content."],["It accepts a single argument, `toolboxDef`, which is a `ToolboxInfo` object containing the structure and details for the new toolbox."],["The method does not return any value (void) and is primarily responsible for visually updating the toolbox."]]],["The `IToolbox.render()` method updates the toolbox's content. It accepts a `ToolboxInfo` object, which contains the data needed to construct the toolbox. The method then replaces the existing toolbox items with new ones, based on the provided `ToolboxInfo`. It does not return any value. The primary action is updating and populating the toolbox with new items, effectively rebuilding it with new information.\n"]]