Skip to main content

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

Property

Modifiers

Type

Description

block?

BlockSvg

(Optional)

comment?

RenderedWorkspaceComment

(Optional)

focusedNode?

IFocusableNode

(Optional)

workspace?

WorkspaceSvg

(Optional)