Skip to main content

Home > blockly > Workspace > getCommentById

Workspace.getCommentById() method

Find the comment on this workspace with the specified ID.

Signature:

getCommentById(id: string): WorkspaceComment | null;

Parameters

ParameterTypeDescription
idstringID of comment to find.

Returns:

WorkspaceComment | null

The sought after comment, or null if not found.