Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > FieldCheckboxValidator
Jenis FieldCheckboxValidator
Fungsi yang dipanggil untuk memvalidasi perubahan pada nilai kolom sebelum ditetapkan.
Tanda Tangan:
export type FieldCheckboxValidator = FieldValidator<CheckboxBool>;
Referensi: FieldValidator
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-12 UTC.
[null,null,["Terakhir diperbarui pada 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."]]],[]]