checks data in the component during adding new item or editing existing ones
boolean | result of validation (success or failure) |
var form1 = [
{ view:"text", label:'Login', name:"login" },
{ view:"text", label:'Email', name:"email" },
{ view:"button", value: "Submit", click:function(){
this.getParentView().validate(); //form.validate()
}
}
];
Form is validated according to the rules you ought to define for the necessary form fields. See the corresponding chapter of the API reference.
Back to top