blockly > ToolboxItemNavigationPolicy > getFirstChild
ToolboxItemNavigationPolicy.getFirstChild() method
Returns the first child of the given toolbox item.
Signature:
getFirstChild(current: IToolboxItem): IFocusableNode | null;
Parameters
Parameter | Type | Description |
|---|---|---|
current | The toolbox item to return the first child of. |
Returns:
IFocusableNode | null
The child item of a collapsible toolbox item, otherwise null.