checks whether the value in the text field is numeric
value | any | the value to check |
boolean | true, if the value is a number |
rules:{ //component name is used to apply the rule to it
login: webix.rules.isNumber
}
All characters typed into the specified text field must be numbers to pass validation.
You can call this function explicitely to perform the related check, as follows:
if(webix.rules.isNumber(value)){
// your logic
}