研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >ContextMenuRegistry
用于上下文菜单项注册表的类。这应是单例。您不应创建新实例,而应仅从 ContextMenuRegistry.registry 访问此类。
Signature:
export declare class ContextMenuRegistry
构造函数
构造函数 |
修饰符 |
说明 |
(构造函数)() |
|
重置 ContextMenuRegistry 的现有单例实例。 |
属性
方法
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-12。
[null,null,["最后更新时间 (UTC):2024-09-12。"],[[["The `ContextMenuRegistry` class manages context menu items in Blockly and is designed as a singleton, accessed via `ContextMenuRegistry.registry`."],["It provides methods for registering, unregistering, and retrieving context menu items, as well as getting context menu options based on scope."],["The registry can be reset to its initial state using the `reset()` method."],["Developers interact with the singleton instance rather than creating new instances of the class."]]],[]]