diff --git a/source/feathers/controls/TextArea.as b/source/feathers/controls/TextArea.as
index 9a0abfd7c..c3fdc863d 100644
--- a/source/feathers/controls/TextArea.as
+++ b/source/feathers/controls/TextArea.as
@@ -476,6 +476,11 @@ package feathers.controls
*/
public static var globalStyleProvider:IStyleProvider;
+ private static function defaultErrorCalloutFactory():TextCallout
+ {
+ return new TextCallout();
+ }
+
/**
* Constructor.
*/
@@ -1338,6 +1343,52 @@ package feathers.controls
this._customPromptStyleName = value;
this.invalidate(INVALIDATION_FLAG_TEXT_RENDERER);
}
+
+ /**
+ * @private
+ */
+ protected var _errorCalloutFactory:Function;
+
+ /**
+ * A function used to instantiate the error text callout. If null,
+ * new TextCallout()
is used instead.
+ * The error text callout must be an instance of
+ * TextCallout
. This factory can be used to change
+ * properties on the callout when it is first created. For instance, if
+ * you are skinning Feathers components without a theme, you might use
+ * this factory to set styles on the callout.
+ *
+ *
The factory should have the following function signature:
+ *function():TextCallout+ * + *
In the following example, a custom error callout factory is passed + * to the text area:
+ * + *