研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >ContextMenuRegistry
Signature:
export declare namespace ContextMenuRegistry
枚举
枚举 |
说明 |
ScopeType |
此菜单项的呈现位置。如果菜单项应在多个作用域中呈现,例如则应针对每个范围进行注册。 |
接口
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-12。
[null,null,["最后更新时间 (UTC):2024-09-12。"],[[["The `ContextMenuRegistry` namespace manages the registration and display of context menu items within Blockly workspaces."],["It defines enumerations like `ScopeType` to determine where menu items should appear (e.g., block, workspace)."],["Interfaces like `ContextMenuOption` and `RegistryItem` standardize the structure of menu items for both internal use and external registration."],["`LegacyContextMenuOption` provides compatibility with older code but using `ContextMenuOption` is recommended for new implementations."],["The `Scope` interface provides context-specific information about the workspace or block where the menu is displayed."]]],[]]