Home > 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.
Home > blockly > Block > getRootBlock
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.