Skip to main content

blockly > Navigator > getPreviousNode

Returns the previous node relative to the given node.

Signature:

getPreviousNode(node?: IFocusableNode | null): IFocusableNode | null;

Parameters

Parameter

Type

Description

node

IFocusableNode | null

(Optional) The node to navigate relative to, defaults to the currently focused node.

Returns:

IFocusableNode | null

The previous node, generally on the "row" visually above the specified node, or null if there is none.