blockly > Eventi > CommentChange > corsa
Esegui un evento di modifica.
Firma:
run(forward: boolean): void;
Parametri
Parametro |
Tipo |
Descrizione |
avanti |
booleano |
True se esegue l'esecuzione in avanti, false se esegue l'operazione all'indietro (annulla). |
Resi:
null
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-08-29 UTC.
[null,null,["Ultimo aggiornamento 2024-08-29 UTC."],[[["The `run()` method executes a CommentChange event, modifying a block's comment."],["It accepts a boolean `forward` parameter, indicating whether the event should be applied (forward) or reversed (backward/undo)."],["Calling `run()` with `forward` set to `true` applies the comment change, while setting it to `false` undoes the change."]]],["The `Events.CommentChange.run()` method executes a comment change event. It accepts a boolean parameter, `forward`, which determines the direction of the operation. When `forward` is true, the change is applied; when false, the change is undone. The method does not return any value (void). This method is essential for both implementing changes and enabling the undo functionality for comment edits.\n"]]