Skip to main content

blockly > comments > WorkspaceComment > (constructor)

comments.WorkspaceComment.(constructor)

Constructs the comment.

Signature:

constructor(workspace: Workspace, id?: string);

Parameters

Parameter

Type

Description

workspace

Workspace

The workspace to construct the comment in.

id

string

(Optional) An optional ID to give to the comment. If not provided, one will be generated.