Skip to main content

Home > blockly > INavigationPolicy > getParent

INavigationPolicy.getParent() method

Returns the parent element of the given element, if any.

Signature:

getParent(current: T): IFocusableNode | null;

Parameters

ParameterTypeDescription
currentTThe element which the user is navigating out of.

Returns:

IFocusableNode | null

The parent element of the current element, or null if it has none.