blockly > ContextMenuRegistry > ScopeType
Where this menu item should be rendered. If the menu item should be rendered in multiple scopes, e.g. on both a block and a workspace, it should be registered for each scope.
Signature:
enum ScopeType
Enumeration Members
Member |
Value |
Description |
BLOCK |
"block" |
|
COMMENT |
"comment" |
|
WORKSPACE |
"workspace" |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["`ContextMenuRegistry.ScopeType` is an enum used to define where a context menu item should be displayed."],["It includes three members: `BLOCK`, `COMMENT`, and `WORKSPACE`, specifying whether the item belongs to a block, a comment, or the workspace, respectively."],["To display an item in multiple locations, register it for each applicable scope."]]],[]]