blockly > Events > CommentBase > (constructor)
Constructs a new instance of the CommentBase
class
Signature:
constructor(opt_comment?: WorkspaceComment);
Parameters
Parameter |
Type |
Description |
opt_comment |
WorkspaceComment |
(Optional) The comment this event corresponds to. 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.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `CommentBase` class constructor creates a new instance of the class, representing an event related to a workspace comment."],["It optionally takes a `WorkspaceComment` object as input, specifying the comment the event is associated with."]]],["The `CommentBase` class constructor creates a new instance, optionally accepting a `WorkspaceComment` object as a parameter. This parameter represents the comment the event is associated with. If no comment is provided, the event is considered blank. The constructor's signature is `constructor(opt_comment?: WorkspaceComment)`.\n"]]