ResetButtonForTextField - Vaadin Add-on Directory
Extension that adds a reset button to any TextField componentAdds a reset button to a text field, allowing users to clear the value of the field with one click.
The reset button is drawn using SVG images in supported browsers. With IE8 PNG versions of those are used.
Also an example project for a blog post [Extending components in Vaadin 7](https://vaadin.com/blog/-/blogs/extending-components-in-vaadin-7).
## Usage ##
Either add Maven
org.vaadin
resetbuttonfortextfield
1.2.1
or Ivy dependency
or just add the JAR to your project, compile the widgetset and then extend any TextField:
TextField tf = new TextField();
ResetButtonForTextField.extend(tf);
Online DemoIssue Tracker
Source Code
Blog post
ResetButtonForTextField version 1.1.1
- Fixed NPE if reset button was clicked and no listeners were set
ResetButtonForTextField version 1.2.1
* Fix errors in pom.xml