blockly > FieldTextInput > doClassValidation_
طريقة FieldTextInput.doClassValidation_()
تأكَّد من أنّ قيمة الإدخال يتم تحويلها إلى سلسلة صالحة.
Signature:
protected doClassValidation_(newValue?: any): string | null;
المعلمات
المَعلمة |
النوع |
الوصف |
newValue |
أي واحد |
(اختياري) قيمة الإدخال. |
المرتجعات:
سلسلة | خالية
سلسلة صالحة أو قيمة خالية إذا كانت غير صالحة.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-04 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-04 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `doClassValidation_` method in `FieldTextInput` is used to validate user input, ensuring it can be cast to a string."],["It accepts an optional `newValue` parameter representing the input and returns a valid string if the input is valid, otherwise null."],["This method is designated as `protected`, indicating it is intended for internal use within the class or its subclasses."]]],[]]