blockly > Navigator > getTopLevelItems
Navigator.getTopLevelItems() method
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 | The node whose root focusable tree to retrieve the top-level items of. |
Returns:
A list of all top-level items on the given node's parent tree.