Skip to main content

Home > blockly > INavigationPolicy > getFirstChild

INavigationPolicy.getFirstChild() method

Returns the first child element of the given element, if any.

Signature:

getFirstChild(current: T): IFocusableNode | null;

Parameters

ParameterTypeDescription
currentTThe element which the user is navigating into.

Returns:

IFocusableNode | null

The current element's first child, or null if it has none.