blockly > ContextMenu > getCurrentBlock
ContextMenu.getCurrentBlock() function
Gets the block the context menu is currently attached to.
Signature:
export declare function getCurrentBlock(): Block | null;
Returns:
Block | null
The block the context menu is attached to.