Wayne
Wayne

Reputation: 77

Click event before value change. (Checkbox)

Using CheckBox and need to pop up a dialog BEFORE the check is set or unset. What listener should I use? Is there a previous value stored somewhere?

V/w Wayne

Upvotes: 1

Views: 572

Answers (1)

Simon Martinelli
Simon Martinelli

Reputation: 36103

There is a variety of listeners on the CheckBox component.

If you use addValueChangeListener you'll get a ComponentValueChangeEvent On this event, you can get the old value.

API: https://vaadin.com/api/platform/23.0.0.alpha1/com/vaadin/flow/component/checkbox/Checkbox.html

Upvotes: 1

Related Questions