Stay organized with collections
Save and categorize content based on your preferences.
blockly > ContextMenuRegistry
Class for the registry of context menu items. This is intended to be a singleton. You should not create a new instance, and only access this class from ContextMenuRegistry.registry.
Signature:
export declare class ContextMenuRegistry
Constructors
Constructor |
Modifiers |
Description |
(constructor)() |
|
Resets the existing singleton instance of ContextMenuRegistry. |
Properties
Methods
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `ContextMenuRegistry` class manages context menu items in Blockly and is designed as a singleton, accessed via `ContextMenuRegistry.registry`."],["It provides methods for registering, unregistering, and retrieving context menu items, as well as getting context menu options based on scope."],["The registry can be reset to its initial state using the `reset()` method."],["Developers interact with the singleton instance rather than creating new instances of the class."]]],[]]