Skip to content

tapioaali/ResetButtonForTextField

Repository files navigation

Reset Button for Text Field Extension

Adds a reset button to a text field, allowing users to clear the value of the field with one click. Get it from Vaadin Directory: https://vaadin.com/directory#!addon/resetbuttonfortextfield

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.

Usage

Either add Maven

<dependency>
   <groupId>org.vaadin.addons</groupId>
   <artifactId>resetbuttonfortextfield</artifactId>
   <version>1.2.1</version>
</dependency>

or Ivy dependency

<dependency 
   org="org.vaadin.addons" 
   name="resetbuttonfortextfield" 
   rev="1.2.1" />

or just add the JAR to your project, compile the widgetset and then extend any TextField:

TextField tf = new TextField();
ResetButtonForTextField.extend(tf);

About

Vaadin 7 add-on that adds a touch device like reset button to the TextField component.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published