Stay organized with collections
Save and categorize content based on your preferences.
blockly > Events > CommentCollapse > (constructor)
Constructs a new instance of the CommentCollapse
class
Signature:
constructor(comment?: WorkspaceComment, newCollapsed?: boolean | undefined);
Parameters
Parameter |
Type |
Description |
comment |
WorkspaceComment |
(Optional) |
newCollapsed |
boolean | undefined |
(Optional) |
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."],[[["\u003cp\u003eThe \u003ccode\u003eCommentCollapse\u003c/code\u003e class constructor creates a new event for collapsing or expanding a workspace comment.\u003c/p\u003e\n"],["\u003cp\u003eIt optionally takes a \u003ccode\u003eWorkspaceComment\u003c/code\u003e object and a boolean \u003ccode\u003enewCollapsed\u003c/code\u003e value indicating the comment's new collapsed state.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [Events](./blockly.events_namespace.md) \\\u003e [CommentCollapse](./blockly.events_namespace.commentcollapse_class.md) \\\u003e [(constructor)](./blockly.events_namespace.commentcollapse_class._constructor__1_constructor.md)\n\nEvents.CommentCollapse.(constructor)\n\nConstructs a new instance of the `CommentCollapse` class\n\n**Signature:** \n\n constructor(comment?: WorkspaceComment, newCollapsed?: boolean | undefined);\n\nParameters\n\n| Parameter | Type | Description |\n|--------------|----------------------------------------------------------------------------|--------------|\n| comment | [WorkspaceComment](./blockly.comments_namespace.workspacecomment_class.md) | *(Optional)* |\n| newCollapsed | boolean \\| undefined | *(Optional)* |"]]