blockly > FieldDropdown > doClassValidation_
FieldDropdown.doClassValidation_() yöntemi
Giriş değerinin, dilden bağımsız olarak geçerli bir seçenek olduğundan emin olun.
İmza:
protected doClassValidation_(newValue: string): string | null | undefined;
Parametreler
Parametre |
Tür |
Açıklama |
newValue |
dize |
Giriş değeri. |
Şunu döndürür:
dize | null | tanımsız
Dilden bağımsız olarak geçerli bir seçenek, geçersizse null.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-09-12 UTC.
[null,null,["Son güncelleme tarihi: 2024-09-12 UTC."],[[["`doClassValidation_` is a protected method of the `FieldDropdown` class in Blockly, used to validate user input against the dropdown options."],["This method takes a string input representing the user's selected value and returns a validated, language-neutral option or null if the input is invalid."],["The primary purpose is to ensure that the chosen value is a valid option from the available choices in the dropdown."]]],[]]