X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/Labelable.html diff --git a/docs/source/Labelable.html b/docs/source/Labelable.html index f676314c..9a31fdaa 100644 --- a/docs/source/Labelable.html +++ b/docs/source/Labelable.html @@ -366,6 +366,11 @@ Ext.define("Ext.form.Labelable", { * Sets the active error message to the given string. This replaces the entire error message * contents with the given string. Also see {@link #setActiveErrors} which accepts an Array of * messages and formats them according to the {@link #activeErrorsTpl}. + * + * Note that this only updates the error message element's text and attributes, you'll have + * to call doComponentLayout to actually update the field's layout to match. If the field extends + * {@link Ext.form.field.Base} you should call {@link Ext.form.field.Base#markInvalid markInvalid} instead. + * * @param {String} msg The error message */ setActiveError: function(msg) { @@ -387,6 +392,11 @@ Ext.define("Ext.form.Labelable", { * Set the active error message to an Array of error messages. The messages are formatted into * a single message string using the {@link #activeErrorsTpl}. Also see {@link #setActiveError} * which allows setting the entire error contents with a single string. + * + * Note that this only updates the error message element's text and attributes, you'll have + * to call doComponentLayout to actually update the field's layout to match. If the field extends + * {@link Ext.form.field.Base} you should call {@link Ext.form.field.Base#markInvalid markInvalid} instead. + * * @param {Array} errors The error messages */ setActiveErrors: function(errors) { @@ -396,7 +406,11 @@ Ext.define("Ext.form.Labelable", { }, /** - * Clears the active error. + * Clears the active error message(s). + * + * Note that this only clears the error message element's text and attributes, you'll have + * to call doComponentLayout to actually update the field's layout to match. If the field extends + * {@link Ext.form.field.Base} you should call {@link Ext.form.field.Base#clearInvalid clearInvalid} instead. */ unsetActiveError: function() { delete this.activeError;