blockly > INavigationPolicy > getParent
INavigationPolicy.getParent() method
Returns the parent element of the given element, if any.
Signature:
getParent(current: T): IFocusableNode | null;
Parameters
Parameter | Type | Description |
---|---|---|
current | T | The element which the user is navigating out of. |
Returns:
IFocusableNode | null
The parent element of the current element, or null if it has none.