Encuesta de investigación: Cuéntanos sobre tu experiencia con Blockly
Comenzar encuesta
blockly > íconos > CommentState
Es el formato de estado guardado de un ícono de comentario.
Signature:
export interface CommentState
Propiedades
Propiedad |
Modificadores |
Tipo |
Descripción |
altura? |
|
número |
(Opcional) Es la altura de la burbuja de comentarios. |
fijados? |
|
booleano |
(Opcional) Es verdadero si el comentario está abierto y falso en caso contrario. |
text? |
|
string |
(Opcional) El texto del comentario. |
width? |
|
número |
(Opcional) Es el ancho de la burbuja de comentario. |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-11-04 (UTC)
[null,null,["Última actualización: 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"]]