blockly > icons > CommentState
Format d'état d'enregistrement pour une icône de commentaire.
Signature :
export interface CommentState
Propriétés
Propriété |
Modificateurs |
Type |
Description |
la hauteur ? |
|
Nombre |
(Facultatif) Hauteur de la bulle de commentaire. |
épinglées ? |
|
booléen |
(Facultatif) "True" si le commentaire est ouvert et "false" dans le cas contraire. |
text? |
|
chaîne |
(Facultatif) Texte du commentaire. |
largeur ? |
|
Nombre |
(Facultatif) Largeur de la bulle de commentaire. |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/11/04 (UTC).
[null,null,["Dernière mise à jour le 2024/11/04 (UTC)."],[[["The `icons.CommentState` interface defines the structure for saving the state of a comment icon in Blockly."],["It includes optional properties for height, width, pinned state, and text of the comment."],["These properties help in restoring the visual and textual aspects of a comment when loaded."]]],["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"]]