Skip to main content

Home > blockly > WorkspaceSvg > getTopComments

WorkspaceSvg.getTopComments() method

Returns a list of comments on this workspace.

Signature:

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

Parameters

ParameterTypeDescription
orderedboolean(Optional) If true, sorts the comments based on their position.

Returns:

RenderedWorkspaceComment[]

A list of workspace comments.