isEmail

checks whether the typed data complies with the rules of email address writing

boolean isEmail(any value);
valueanythe value to check
booleantrue, 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
Back to top