研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly > Toolbox > getToolboxItemById
获取具有指定 ID 的 Toolbox 项。
Signature:
getToolboxItemById(id: string): IToolboxItem | null;
参数
参数 |
类型 |
说明 |
id |
字符串 |
工具箱项的 ID。 |
返回:
IToolboxItem | null
具有给定 ID 的 Toolbox 项,如果不存在任何项,则返回 null。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-22。
[null,null,["最后更新时间 (UTC):2024-11-22。"],[[["The `Toolbox.getToolboxItemById()` method retrieves a toolbox item using its unique ID."],["It accepts a single parameter: `id` (string) representing the ID of the desired toolbox item."],["This method returns the `IToolboxItem` object if found, otherwise it returns `null`."]]],[]]