Home > blockly > ContextMenu > getCurrentBlock
ContextMenu.getCurrentBlock() function
Gets the block the context menu is currently attached to. It is not recommended that you use this function; instead, use the scope object passed to the context menu callback.
Signature:
export declare function getCurrentBlock(): Block | null;
Returns:
Block | null
The block the context menu is attached to.