Home > blockly > BlockNavigationPolicy > getParent
BlockNavigationPolicy.getParent() method
Returns the parent of the given block.
Signature:
getParent(current: BlockSvg): IFocusableNode | null;
Parameters
| Parameter | Type | Description |
|---|---|---|
| current | BlockSvg | The block to return the parent of. |
Returns:
IFocusableNode | null
The top block of the given block's stack, or the connection to which it is attached.