isEmail of rules, Methods Webix Docs
checks whether the typed data complies with the rules of email address writing
boolean isEmail(any value);
value
| boolean | true, if the value is an email |
Example
rules:{ // component name is used to apply the rule to it
"login":webix.rules.isEmail
}
Related samples
Details
You can call this function explicitely to perform the related check, as follows:
if(webix.rules.isEmail(value)){
// your logic
}
See also
API
Articles