We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58924bb commit 852420bCopy full SHA for 852420b
src/main/java/gwt/material/design/client/ui/MaterialTextBox.java
@@ -91,6 +91,14 @@ public void setValid() {
91
txtBox.getElement().addClassName("valid");
92
isValid = true;
93
}
94
+
95
+ /**
96
+ * Resets the textbox by removing its content and resetting visual state.
97
+ */
98
+ public void clear() {
99
+ txtBox.setText("");
100
+ backToDefault();
101
+ }
102
103
public void backToDefault() {
104
txtBox.getElement().removeClassName("valid");
0 commit comments