Skip to main content

blockly > BlockNavigationPolicy > getPreviousSibling

BlockNavigationPolicy.getPreviousSibling() method

Returns the previous peer node of the given block.

Signature:

getPreviousSibling(current: BlockSvg): IFocusableNode | null;

Parameters

Parameter

Type

Description

current

BlockSvg

The block to find the preceding element of.

Returns:

IFocusableNode | null

The block's previous connection, or the previous peer on its parent block, otherwise null.