blockly > Workspace > newComment

Workspace.newComment() method

Obtain a newly created comment.

Signature:

newComment(id?: string): WorkspaceComment;

Parameters

Parameter Type Description
id string (Optional) Optional ID. Use this ID if provided, otherwise create a new ID.

Returns:

WorkspaceComment

The created comment.