Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > icons > CommentState
Das Speicherstatusformat für ein Kommentarsymbol.
Unterschrift:
export interface CommentState
Attribute
Attribut |
Modifikatoren |
Typ |
Beschreibung |
height |
|
Zahl |
Optional: Die Höhe der Kommentarblase. |
angepinnt? |
|
boolean |
Optional: „Wahr“, wenn der Kommentar offen ist, andernfalls „Falsch“. |
text? |
|
String |
Optional: Der Text des Kommentars. |
width? |
|
Zahl |
Optional: Die Breite der Kommentarblase. |
x? |
|
Zahl |
Optional: Die X-Koordinate der Kommentarblase. |
y? |
|
Zahl |
Optional: Die Y-Koordinate der Kommentarblase. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-25 (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,[]]