isEmail

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

boolean isEmail(any value);

Parameters

valueanythe value to check

Returns

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