Switch is a decorated toggle checkbox.

Switch is basically a decorated checkbox with a very similar look to the switch component found on iOS and Android.

The server-side API extends the Vaadin CheckBox with added methods for enabling/disabling client-side animations. The state of the Switch can be changed with mouse (click and/or drag), keyboard (focus with tab, use space to change the value) or by sliding the component via touch gestures in Mobile Safari and Android browser.

Starting from version 1.0.0 the add-on has two additional built in styles ("compact" and "holodeck"). Navigate to the online demo to see them in action.

Install

Link to this version
StableReleased 28 March 2017Apache License 2.0
Framework Support
Vaadin 8.0+
Also supported:
Vaadin 6 (1.0.1)Vaadin 7 (2.0.3)
Browser Compatibility
11
Install with
Release notes - Version 3.0.0

First version to support Vaadin 8