Skip to main content

blockly > Navigator > getTopLevelItems

Returns a list of all top-level focusable items on the given node's focusable tree.

Signature:

protected getTopLevelItems(current: IFocusableNode): IFocusableNode[];

Parameters

Parameter

Type

Description

current

IFocusableNode

The node whose root focusable tree to retrieve the top-level items of.

Returns:

IFocusableNode[]

A list of all top-level items on the given node's parent tree.