blockly > Zablokuj > setCommentText
Ustaw tekst komentarza do tego bloku.
Podpis:
setCommentText(text: string | null): void;
Parametry
Parametr |
Typ |
Opis |
tekst |
ciąg znaków | wartość null |
Tekst lub wartość null do usunięcia. |
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-22 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-22 UTC."],[[["The `setCommentText()` method allows you to modify or remove the comment associated with a specific block."],["It accepts a single parameter, `text`, which can be a string containing the new comment or `null` to delete the existing comment."],["Calling this method updates the block's comment without returning any value."]]],[]]