Skip to main content

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

IToolboxItem

The toolbox item to return the first child of.

Returns:

IFocusableNode | null

The child item of a collapsible toolbox item, otherwise null.