blockly > Block > getRootBlock

Block.getRootBlock() method

Return the top-most block in this block's tree. This will return itself if this block is at the top level.

Signature:

getRootBlock(): this;

Returns:

this

The root block.