Documentation

validate

checks data in the component during adding new item or editing existing ones

boolean validate();

Returns

booleanresult of validation (success or failure)

See also

Example

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()
                }
            }
        ];

Details

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