Home > blockly > FieldNavigationPolicy > getParent
FieldNavigationPolicy.getParent() method
Returns the parent block of the given field.
Signature:
getParent(current: Field<any>): IFocusableNode | null;
Parameters
| Parameter | Type | Description |
|---|---|---|
| current | Field<any> | The field to navigate from. |
Returns:
IFocusableNode | null
The given field's parent block.