blockly > FieldCheckbox > setCheckCharacter
Metoda FieldCheckbox.setCheckCharacter()
Ustaw znak zaznaczenia.
Podpis:
setCheckCharacter(character: string | null): void;
Parametry
Parametr |
Typ |
Opis |
znak |
ciąg znaków | wartość null |
Znak, który ma być używany w przypadku znacznika wyboru, lub wartość null, by użyć wartości domyślnej. |
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-09-10 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-10 UTC."],[[["The `setCheckCharacter` method allows customization of the check mark character within a FieldCheckbox element."],["This method accepts a single parameter: `character`, which can be a string specifying the desired character or null to revert to the default."],["Calling `setCheckCharacter` with a specific character changes the visual representation of the checked state in the FieldCheckbox."],["Using null as the `character` argument resets the check mark to the default visual representation."]]],["The `setCheckCharacter()` method within the `FieldCheckbox` class allows modification of the check mark character. It accepts a `string` or `null` as a parameter, named `character`. Providing a string sets a custom character for the check mark. Passing `null` reverts the check mark to its default character. The method returns no value (void).\n"]]