isNotEmpty

checks whether a text field is empty

boolean isNotEmpty(any value);

Parameters

valueanythe value to check

Returns

booleantrue, if the value is not empty

Example

rules:{ // component name is used to apply the rule to it
    "login":webix.rules.isNotEmpty
}

Related samples

Details

There should be at least one character in the text field to pass validation.

You can call this function explicitely to perform the related check, as follows:

if(webix.rules.isNotEmpty(value)){
   // your logic
}
See also
Back to top