Home > blockly > WorkspaceSvg > getCommentById
WorkspaceSvg.getCommentById() method
Returns the workspace comment with the given ID, if any.
Signature:
getCommentById(id: string): RenderedWorkspaceComment | null;
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | string | The ID of the comment to retrieve. |
Returns:
RenderedWorkspaceComment | null
The workspace comment with the given ID, or null.