Skip to main content

blockly > ToolboxItemNavigationPolicy > getParent

ToolboxItemNavigationPolicy.getParent() method

Returns the parent of the given toolbox item.

Signature:

getParent(current: IToolboxItem): IFocusableNode | null;

Parameters

Parameter

Type

Description

current

IToolboxItem

The toolbox item to return the parent of.

Returns:

IFocusableNode | null

The parent toolbox item of the given toolbox item, if any.