Home > blockly > BlockNavigationPolicy > getFirstChild
BlockNavigationPolicy.getFirstChild() method
Returns the first child of the given block.
Signature:
getFirstChild(current: BlockSvg): IFocusableNode | null;
Parameters
| Parameter | Type | Description |
|---|---|---|
| current | BlockSvg | The block to return the first child of. |
Returns:
IFocusableNode | null
The first field or input of the given block, if any.