Directory

← Back

Resetbutton for listsetect Add-on

A reset-button for the ListSelect component

Author

Rating

Popularity

<100

The ResetButtonForListSelect is a Vaadin extension Add-on which adds a reset button to the caption of a ListSelect class. This reset-button will set the value of the extended ListSelect to "null" (via the setValue() method, so also fires valueChangeListeners if registered).

Since the extension adds the reset button to the caption, this Add-on only works, when the extended ListSelect has a caption set before initialy rendered to the screen.

Sample code

		final ListSelect listSelect = new ListSelect("Some ListSelect", Arrays.asList("Apple", "Orange", "Pineapple", "Coconut", "Strawberry", "Mango", "Kiwi",
		        "Banana", "Water Melon", "Lemon fruit", "Date"));

		ResetButtonForListSelect.extend(listSelect);

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

initial version with the reset button implemented

Released
2015-04-19
Maturity
BETA
License
MIT License

Compatibility

Framework
Vaadin 7.4+
Browser
Firefox
Opera
Safari
Google Chrome
Internet Explorer
Internet Explorer
Internet Explorer

Resetbutton for listsetect Add-on - Vaadin Add-on Directory

A reset-button for the ListSelect component Resetbutton for listsetect Add-on - Vaadin Add-on Directory
The ResetButtonForListSelect is a Vaadin extension Add-on which adds a reset button to the caption of a ListSelect class. This reset-button will set the value of the extended ListSelect to "null" (via the setValue() method, so also fires valueChangeListeners if registered). Since the extension adds the reset button to the caption, this Add-on only works, when the extended ListSelect has a caption set before initialy rendered to the screen.
Online