We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dde9136 commit cd6d14bCopy full SHA for cd6d14b
haxe/ui/components/TextArea.hx
@@ -82,6 +82,14 @@ class TextArea extends InteractiveComponent implements IFocusable implements ICo
82
@:clonable @:behaviour(IconBehaviour) public var icon:String;
83
@:style(layout) public var iconPosition:String;
84
85
+ public var isBlank(get, null):Bool;
86
+ private function get_isBlank():Bool {
87
+ if (text == null) {
88
+ return true;
89
+ }
90
+ return StringTools.trim(text).length == 0;
91
92
+
93
//***********************************************************************************************************
94
// Validation
95
0 commit comments