Stay organized with collections
Save and categorize content based on your preferences.
blockly > ContextMenuRegistry
Signature:
export declare namespace ContextMenuRegistry
Enumerations
Enumeration |
Description |
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. |
Interfaces
Interface |
Description |
ContextMenuOption |
A menu item as presented to contextmenu.js. |
LegacyContextMenuOption |
A subset of ContextMenuOption corresponding to what was publicly documented. ContextMenuOption should be preferred for new code. |
RegistryItem |
A menu item as entered in the registry. |
Scope |
The actual workspace/block where the menu is being rendered. This is passed to callback and displayText functions that depend on this information. |
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 2023-06-23 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2023-06-23 UTC.",
"state": ""
}