blockly > WorkspaceComment > (constructor)
WorkspaceComment.(constructor)
Constructs a new instance of the WorkspaceComment
class
Signature:
constructor(workspace: Workspace, content: string, height: number, width: number, opt_id?: string);
Parameters
Parameter | Type | Description |
---|---|---|
workspace | Workspace | The block's workspace. |
content | string | The content of this workspace comment. |
height | number | Height of the comment. |
width | number | Width of the comment. |
opt_id | string | (Optional) Optional ID. Use this ID if provided, otherwise create a new ID. |