Stay organized with collections
Save and categorize content based on your preferences.
blockly > Events > CommentCreate > (constructor)
Constructs a new instance of the CommentCreate
class
Signature:
constructor(opt_comment?: WorkspaceComment);
Parameters
Parameter |
Type |
Description |
opt_comment |
WorkspaceComment |
(Optional) The created comment. Undefined for a blank event. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `CommentCreate` event is triggered when a new workspace comment is created in Blockly."],["The constructor can optionally take a `WorkspaceComment` object representing the created comment."],["If no `WorkspaceComment` is provided, the event represents the creation of a blank comment."]]],["The `CommentCreate` class constructor creates a new instance, representing the creation of a comment within a workspace. It optionally accepts a `WorkspaceComment` object as a parameter, which defines the comment being created. If no comment is provided, it signifies a blank event. This constructor is crucial for initializing the data associated with a comment creation event within the system.\n"]]