संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > FieldTextInput > doClassValidation_
फ़ील्डTextइनपुट.doClassValidation_() तरीका
पक्का करें कि इनपुट वैल्यू किसी मान्य स्ट्रिंग पर कास्ट की गई हो.
हस्ताक्षर:
protected doClassValidation_(newValue?: any): string | null;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
newValue |
कोई |
(ज़रूरी नहीं) इनपुट वैल्यू. |
लौटाए जाने वाले प्रॉडक्ट:
स्ट्रिंग | शून्य
एक मान्य स्ट्रिंग या अमान्य होने पर शून्य.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["The `doClassValidation_` method, part of the `FieldTextInput` class, validates input values to ensure they can be cast to a string. It accepts an optional `newValue` of any type as input. The method returns either a valid string if the input is acceptable or `null` if the input is invalid. This method ensures the input is a usable string.\n"]]