Stay organized with collections
Save and categorize content based on your preferences.
blockly > icons > CommentState
The save state format for a comment icon.
Signature:
export interface CommentState
Properties
Property |
Modifiers |
Type |
Description |
height? |
|
number |
(Optional) The height of the comment bubble. |
pinned? |
|
boolean |
(Optional) True if the comment is open, false otherwise. |
text? |
|
string |
(Optional) The text of the comment. |
width? |
|
number |
(Optional) The width of the comment bubble. |
x? |
|
number |
(Optional) The X coordinate of the comment bubble. |
y? |
|
number |
(Optional) The Y coordinate of the comment bubble. |
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 2025-05-16 UTC.
[null,null,["Last updated 2025-05-16 UTC."],[],["The `CommentState` interface defines the data structure for saving a comment icon's state. It includes optional properties for `height` and `width` (both numbers) to define the comment bubble's dimensions. `pinned` (boolean) indicates whether the comment is open, and `text` (string) stores the comment's textual content. These properties allow for the preservation of a comment's size, visibility, and content.\n"],null,[]]