Encuesta de investigación: Cuéntanos sobre tu experiencia con Blockly
Comenzar encuesta
blockly > Eventos > CommentCreate > (constructor)
Construye una instancia nueva de la clase CommentCreate
.
Signature:
constructor(opt_comment?: WorkspaceComment);
Parámetros
Parámetro |
Tipo |
Descripción |
opt_comment |
WorkspaceComment |
(Opcional) Es el comentario creado. No definido para un evento en blanco. |
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-08-29 (UTC)
[null,null,["Última actualización: 2024-08-29 (UTC)"],[[["The `CommentCreate` event is triggered when a new workspace comment is created in Blockly."],["The constructor can optionally take a `WorkspaceComment` object representing the created comment."],["If no `WorkspaceComment` is provided, the event represents the creation of a blank comment."]]],["The `CommentCreate` class constructor creates a new instance, representing the creation of a comment within a workspace. It optionally accepts a `WorkspaceComment` object as a parameter, which defines the comment being created. If no comment is provided, it signifies a blank event. This constructor is crucial for initializing the data associated with a comment creation event within the system.\n"]]