Skip to main content

Home > blockly > ContextMenuRegistry

ContextMenuRegistry namespace

Signature:

export declare namespace ContextMenuRegistry 

Enumerations

EnumerationDescription
ScopeTypeWhere 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

InterfaceDescription
ActionContextMenuOptionA representation of a normal, clickable menu item in contextmenu.ts.
ActionRegistryItemA representation of a normal, clickable menu item in the registry.
CoreContextMenuOptionFields common to all context menu items as used by contextmenu.ts.
CoreRegistryItemFields common to all context menu registry items.
LegacyContextMenuOptionA subset of ContextMenuOption corresponding to what was publicly documented. ContextMenuOption should be preferred for new code.
ScopeThe actual workspace/block/focused object where the menu is being rendered. This is passed to callback and displayText functions that depend on this information.
SeparatorContextMenuOptionA representation of a menu separator item in contextmenu.ts.
SeparatorRegistryItemA representation of a menu separator item in the registry.

Type Aliases

Type AliasDescription
ContextMenuOptionA menu item as presented to contextmenu.ts.
RegistryItemA menu item as entered in the registry.