Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
blockly > Eventos > CommentBase > CommentCreateDeleteHelper
Función auxiliar para Comentario[Crear|Borrar]
Signature:
static CommentCreateDeleteHelper(event: CommentCreate | CommentDelete, create: boolean): void;
Parámetros
| Parámetro |
Tipo |
Descripción |
| evento |
CommentCreate | CommentDelete |
Indica el evento que se ejecutará. |
| create |
boolean |
si es Verdadero, Crear; si Falso, entonces Borrar |
Muestra:
void
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: 2025-07-25 (UTC)
[null,null,["Última actualización: 2025-07-25 (UTC)"],[],["The `CommentCreateDeleteHelper` method facilitates the creation or deletion of comments. It accepts two parameters: an `event` of type `CommentCreate` or `CommentDelete`, and a boolean `create`. If `create` is true, the method handles comment creation; if false, it handles comment deletion. The method's return type is `void`, and it serves as a helper function within the `CommentBase` class of the `Events` namespace.\n"]]