blockly > WorkspaceSvg > getTopComments

WorkspaceSvg.getTopComments() method

Returns a list of comments on this workspace.

Signature:

getTopComments(ordered?: boolean): RenderedWorkspaceComment[];

Parameters

Parameter Type Description
ordered boolean (Optional) If true, sorts the comments based on their position.

Returns:

RenderedWorkspaceComment[]

A list of workspace comments.