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
| Parameter | Type | Description |
|---|---|---|
| current | T | The element which the user is navigating into. |
Returns:
IFocusableNode | null
The current element's first child, or null if it has none.