Closed anilapu closed 9 years ago
Like so.
validate={(v,obj)=>{
var re = /(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}/;
return !Validator.isNull(v) && re.test(v);;
}}
Yes, you should use callback function to validate the value as @lemonCMS showed.
In my form I want to add pattern validation. How can I achieve this? If you make a list of validate attribute options in readme file it will be helpful.