Skip to main content

blockly > Workspace > getCommentById

Workspace.getCommentById() method

Find the comment on this workspace with the specified ID.

Signature:

getCommentById(id: string): WorkspaceComment | null;

Parameters

Parameter

Type

Description

id

string

ID of comment to find.

Returns:

WorkspaceComment | null

The sought after comment, or null if not found.