Skip to main content

Home > blockly > WorkspaceSvg > getCommentById

WorkspaceSvg.getCommentById() method

Returns the workspace comment with the given ID, if any.

Signature:

getCommentById(id: string): RenderedWorkspaceComment | null;

Parameters

ParameterTypeDescription
idstringThe ID of the comment to retrieve.

Returns:

RenderedWorkspaceComment | null

The workspace comment with the given ID, or null.