Skip to main content

blockly > WorkspaceCommentNavigationPolicy > getFirstChild

WorkspaceCommentNavigationPolicy.getFirstChild() method

Returns the first child of the given workspace comment.

Signature:

getFirstChild(current: RenderedWorkspaceComment): IFocusableNode | null;

Parameters

Parameter

Type

Description

current

RenderedWorkspaceComment

The workspace comment to return the first child of.

Returns:

IFocusableNode | null

The first child button of the given comment.