Skip to main content

Home > blockly > comments > WorkspaceComment > (constructor)

comments.WorkspaceComment.(constructor)

Constructs the comment.

Signature:

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

Parameters

ParameterTypeDescription
workspaceWorkspaceThe workspace to construct the comment in.
idstring(Optional) An optional ID to give to the comment. If not provided, one will be generated.