blockly > ContextMenu > setCurrentBlock
ContextMenu.setCurrentBlock() function
Sets the block the context menu is currently attached to.
Signature:
export declare function setCurrentBlock(block: Block | null): void;
Parameters
Parameter | Type | Description |
---|---|---|
block | Block | null | The block the context menu is attached to. |
Returns:
void