validates value of input
boolean | result of validation |
if ($$("mytext").validate()){
....
}
Note that for proper validation:
webix.ui({
view:"form",
elements:[
{ view:"text", required:true, name:"text1" },
{ view:"text", validate:webix.rules.isNumber, name:"text2" },
],
elementsConfig:{
on:{
'onChange':function(newv, oldv){
this.validate();
}
}
}
});