Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > FieldCheckboxValidator
Typ obiektu FieldCheckboxValidator
Funkcja, która jest wywoływana w celu weryfikacji zmian wartości pola przed ich ustawieniem.
Podpis:
export type FieldCheckboxValidator = FieldValidator<CheckboxBool>;
Materiały referencyjne: FieldValidator
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-12 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-09-12 UTC."],[[["`FieldCheckboxValidator` is a type alias for a function used to validate changes to a checkbox field's value."],["This function receives the new checkbox state (true/false) and should return the validated state, an error message, or `null` to indicate the change is invalid."],["The `FieldCheckboxValidator` type uses the `FieldValidator` type with a specialization for `CheckboxBool` values."]]],["The `FieldCheckboxValidator` is a function used to validate changes to a checkbox field's value before the changes are applied. It is defined as a type alias for `FieldValidator`, specifically for `CheckboxBool` values. The core function of the `FieldCheckboxValidator` is to ensure the validity of any proposed changes to a checkbox field. It is a `FieldValidator` type, used to ensure that changes are validated.\n"]]