Skip to main content

Home > blockly > ContextMenuRegistry > Scope

ContextMenuRegistry.Scope interface

The actual workspace/block/focused object where the menu is being rendered. This is passed to callback and displayText functions that depend on this information.

Signature:

export interface Scope 

Properties

PropertyModifiersTypeDescription
block?BlockSvg(Optional)
comment?RenderedWorkspaceComment(Optional)
focusedNode?IFocusableNode(Optional)
workspace?WorkspaceSvg(Optional)