blockly > Block > parentBlock_
Block.parentBlock_ property
Signature:
protected parentBlock_: this | null;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["`parentBlock_` is a protected property of the `Block` class in Blockly that stores a reference to the block's parent block, if any."],["This property's type is either `this` (referring to the Block class itself) or `null` if the block has no parent."]]],["The `parentBlock_` property, found within the `Block` class, is a protected member. It stores a reference to the parent block of a given block. This property can either hold a reference to another `Block` object (representing the parent) or be `null` if the block has no parent. The property's type signature indicates it's either `this` (the current Block instance) or `null`.\n"]]