Question:What are built in validation and custom validation in ExtJS? Show an example of Custom validation? 

Answer Built in validation can be used to validate and restrict user input and report back error messages. It will work in just about any scenario because it uses regular expressions to do the grunt work. Four built in validation is available in ExtJS: email, url, alpha, alphanum. Custom validation means to create own our vtype that is needed to add it to the vtype definitions. Each definition has a value, mask, error text and a function used for testing.</p> Ext.form.Vtype[‘nameMask’]=/[A-Za-z\-]/; 

+ Report
Total Preview: 1073
What are built in validation and custom validation in ExtJS? Show an example of Custom validation?
Copyright © 2024. Powered by Intellect Software Ltd