src/main/resources/META-INF/resources/webjars/bundle.js
/**
         * Validates all fields in this form and returns whether there is any error in the form<br>
         * The following chain of event will be fired when this method is called:<br>
         * <ul>
         * <li>beforeValidate</li>
         * <li>onError - only if there is any error in the form</li>
         * <li>afterValidate</li>
         * </ul>
         * @return {boolean} - Whether there is any error in the form
         */
Validates all fields in this form and returns whether there is any error in the form
The following chain of event will be fired when this method is called:

beforeValidate
onError - only if there is any error in the form
afterValidate

@return {boolean} - Whether there is any error in the form
Validates all fields in this form and returns whether there is any error in the form The following chain of event will be fired when this method is called : beforeValidate onError - only if there is any error in the form afterValidate @return { boolean } - Whether there is any error in the form
validate() {
            const evt = new CustomEvent("beforeValidate");
            evt["source"] = this;
            this.fireListener("beforeValidate", evt);
            this.validationerrors = new Object();
            util.ComponentUtil.visit(this, new JSForm.JSForm$3(this));
            if (Object.keys(this.validationerrors).length > 0) {
                const onError = new CustomEvent("onError");
                onError["source"] = this;
                onError["data"] = this.validationerrors;
                onError["errors"] = this.validationerrors;
                onError["hasError"] = Object.keys(this.validationerrors).length > 0;
                this.fireListener("onError", onError);
            }
            const evtAfter = new CustomEvent("afterValidate");
            evtAfter["source"] = this;
            evtAfter["data"] = this.validationerrors;
            evtAfter["errors"] = this.validationerrors;
            evtAfter["hasError"] = Object.keys(this.validationerrors).length > 0;
            this.fireListener("afterValidate", evtAfter);
            return Object.keys(this.validationerrors).length <= 0;
        }
validate ( ) { const evt = new CustomEvent ( "beforeValidate" ) ; evt [ "source" ] = this ; this . fireListener ( "beforeValidate" , evt ) ; this . validationerrors = new Object ( ) ; util . ComponentUtil . visit ( this , new JSForm . JSForm$3 ( this ) ) ; if ( Object . keys ( this . validationerrors ) . length > 0 ) { const onError = new CustomEvent ( "onError" ) ; onError [ "source" ] = this ; onError [ "data" ] = this . validationerrors ; onError [ "errors" ] = this . validationerrors ; onError [ "hasError" ] = Object . keys ( this . validationerrors ) . length > 0 ; this . fireListener ( "onError" , onError ) ; } const evtAfter = new CustomEvent ( "afterValidate" ) ; evtAfter [ "source" ] = this ; evtAfter [ "data" ] = this . validationerrors ; evtAfter [ "errors" ] = this . validationerrors ; evtAfter [ "hasError" ] = Object . keys ( this . validationerrors ) . length > 0 ; this . fireListener ( "afterValidate" , evtAfter ) ; return Object . keys ( this . validationerrors ) . length <= 0 ; }
Validates all fields in this form and returns whether there is any error in the form<br>
 The following chain of event will be fired when this method is called:<br>
 <ul>
 <li>beforeValidate</li>
 <li>onError - only if there is any error in the form</li>
 <li>afterValidate</li>
 </ul>
 @return {boolean} - Whether there is any error in the form
Validates all fields in this form and returns whether there is any error in the form<br > The following chain of event will be fired when this method is called : <br > <ul > <li > beforeValidate< / li > <li > onError - only if there is any error in the form< / li > <li > afterValidate< / li > < / ul > @return { boolean } - Whether there is any error in the form