使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
blockly > ContextMenuRegistry
Signature:
export declare namespace ContextMenuRegistry
枚举
枚举 |
说明 |
ScopeType |
此菜单项应渲染的位置。如果菜单项应在多个范围(例如在块和工作区中)呈现,则应为每个范围注册该菜单项。 |
接口
类型别名
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["The `ContextMenuRegistry` namespace manages context menu items in Blockly. It defines an enumeration `ScopeType` to specify where a menu item should appear. Four interfaces are provided: `ContextMenuOption` and `LegacyContextMenuOption` represent menu items for display. `RegistryItem` represents menu items within the registry, and `Scope` represents the rendering context, such as a workspace or block, providing context-dependent data. Developers should use `ContextMenuOption` when building new code.\n"],null,[]]