blockly > Events > Click > blockId

Events.Click.blockId property

The ID of the block that was clicked, if a block was clicked.

Signature:

blockId?: string;