Skip to main content

blockly > CommentBarButtonNavigationPolicy > getPreviousSibling

CommentBarButtonNavigationPolicy.getPreviousSibling() method

Returns the previous peer node of the given CommentBarButton.

Signature:

getPreviousSibling(current: CommentBarButton): IFocusableNode | null;

Parameters

Parameter

Type

Description

current

CommentBarButton

The CommentBarButton to find the preceding element of.

Returns:

IFocusableNode | null

The CommentBarButton's previous CommentBarButton, if any.