From: Alan Knowles Date: Fri, 22 Jan 2021 04:17:41 +0000 (+0800) Subject: sync X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=c9efa3c758a1e6157b8fdc59410033e876d5a95a sync --- diff --git a/docs/json/roodata.json b/docs/json/roodata.json index 122436919d..d1022da94a 100644 --- a/docs/json/roodata.json +++ b/docs/json/roodata.json @@ -75133,6 +75133,14 @@ "static" : false, "memberOf" : "Roo.util.Observable" }, + { + "name" : "invalidFields", + "type" : "function", + "desc" : "Returns array of invalid form fields.", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "" + }, { "name" : "isDirty", "type" : "function", @@ -85415,6 +85423,14 @@ "static" : false, "memberOf" : "Roo.util.Observable" }, + { + "name" : "invalidFields", + "type" : "function", + "desc" : "Returns array of invalid form fields.", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.form.BasicForm" + }, { "name" : "isDirty", "type" : "function", diff --git a/docs/src/Roo_form_BasicForm.js.html b/docs/src/Roo_form_BasicForm.js.html index d33d2110c6..a79bdfd893 100644 --- a/docs/src/Roo_form_BasicForm.js.html +++ b/docs/src/Roo_form_BasicForm.js.html @@ -178,6 +178,25 @@ return valid; }, + /** + * Returns array of invalid form fields. + * @return Array + */ + + invalidFields : function() + { + var ret = []; + this.items.each(function(f){ + if(f.validate()){ + return; + } + ret.push(f); + + }); + + return ret; + }, + /** * DEPRICATED Returns true if any fields in this form have changed since their original load. diff --git a/docs/symbols/Roo.form.BasicForm.json b/docs/symbols/Roo.form.BasicForm.json index 5268b285a4..3b02fba2f6 100644 --- a/docs/symbols/Roo.form.BasicForm.json +++ b/docs/symbols/Roo.form.BasicForm.json @@ -506,6 +506,26 @@ } ] }, + { + "name" : "invalidFields", + "desc" : "Returns array of invalid form fields.", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.form.BasicForm", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [], + "returns" : [ + { + "name" : "", + "type" : "", + "desc" : "Array" + } + ] + }, { "name" : "render", "desc" : "Looks at the fields in this form, checks them for an id attribute,\nand calls applyTo on the existing dom element with that id.", diff --git a/docs/symbols/Roo.form.Form.json b/docs/symbols/Roo.form.Form.json index 8679c3614a..1d3d6b09f5 100644 --- a/docs/symbols/Roo.form.Form.json +++ b/docs/symbols/Roo.form.Form.json @@ -921,6 +921,26 @@ } ] }, + { + "name" : "invalidFields", + "desc" : "Returns array of invalid form fields.", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.form.BasicForm", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [], + "returns" : [ + { + "name" : "", + "type" : "", + "desc" : "Array" + } + ] + }, { "name" : "applyIfToFields", "desc" : "Calls {@link Ext#applyIf} for all field in this form with the passed object.",