var tip = this.target.blankText;
if(this.target.getValue() !== '' ) {
- if (this.target.errorText.length) {
- tip = this.target.errorText;
+
+ if (this.target.invalidText.length) {
+ tip = this.target.invalidText;
} else if (this.target.regexText.length){
tip = this.target.regexText;
}
*/
regex : null,
/**
- * @cfg {String} regexText The error text to display if {@link #regex} is used and the test fails during validation (defaults to "")
+ * @cfg {String} regexText -- Depricated - use Invalid Text
*/
regexText : "",
+
/**
* @cfg {String} invalidText The error text to display if {@link #validator} test fails during validation (defaults to "")
*/
if(msg !== true){
return false;
}
+ if (typeof(msg) == 'string') {
+ this.invalidText = msg;
+ }
}
if(this.regex && !this.regex.test(value)){