blockly > ContextMenuRegistry > Scope
The actual workspace/block where the menu is being rendered. This is passed to callback and displayText functions that depend on this information.
Signature:
interface Scope
Properties
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."],[[["The `ContextMenuRegistry.Scope` interface defines the context where a context menu is shown, such as on a workspace, block, or comment."],["It provides access to the relevant workspace, block, or comment through optional properties, allowing context menu items to interact with them."],["The scope is used by callback and display text functions that require information about the context where the menu is displayed."]]],[]]