Skip to main content

blockly > INavigationPolicy > getPreviousSibling

INavigationPolicy.getPreviousSibling() method

Returns the peer element preceding the given element, if any.

Signature:

getPreviousSibling(current: T): IFocusableNode | null;

Parameters

Parameter

Type

Description

current

T

The element which the user is navigating past.

Returns:

IFocusableNode | null

The previous peer element of the current element, or null if there is none.