Home > 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:
A list of workspace comments.