Directory

← Back

ComboBoxMultiselect Add-on

Client-side multisectable ComboBox

Author

Rating

Popularity

300+

The ComboBoxMultiselect component is a client-side Widget. As example was used the ComboBox from Vaadin and the VFilterSelect from Vaadin.

Features:

  • multiselect with checkbox
  • clear selection option

Plans for the future:

  • add scss

Sample code

// Vaadin 7 example!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// Initialize a list with items
List<NamedObject> list = new ArrayList<NamedObject>();
NamedObject vaadin = new NamedObject(2L, "Vaadin”);
list.add(new NamedObject(1L, "Java"));
list.add(vaadin);
list.add(new NamedObject(3L, "Bonprix"));
list.add(new NamedObject(4L, "Addon"));

// Initialize the ComboBoxMultiselect
final ComboBoxMultiselect comboBoxMultiselect = new ComboBoxMultiselect();
comboBoxMultiselect.setInputPrompt("Type here");
comboBoxMultiselect.setCaption("ComboBoxMultiselect");
comboBoxMultiselect.addItems(list);
comboBoxMultiselect.select(vaadin);
// Initialize a list with items
List<NamedObject> list = new ArrayList<NamedObject>();
NamedObject vaadin = new NamedObject(2L, "Vaadin");
list.add(new NamedObject(1L, "Java"));
list.add(vaadin);
list.add(new NamedObject(3L, "Bonprix"));
list.add(new NamedObject(4L, "Addon"));

// Initialize the ComboBoxMultiselect
final ComboBoxMultiselect<NamedObject> comboBoxMultiselect = new ComboBoxMultiselect<>();
comboBoxMultiselect.setPlaceholder("Type here");
comboBoxMultiselect.setCaption("ComboBoxMultiselect");
comboBoxMultiselect.setItems(list);
comboBoxMultiselect.setValue(new HashSet<>(Arrays.asList(vaadin)));

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

Fixed bug with not refreshed filter after changing a module (very specific usecase)

Released
2020-09-14
Maturity
STABLE
License
MIT License

Compatibility

Framework
Vaadin 8.0+
Vaadin 7.5+ in 1.1.14
Browser
Firefox
Safari
Google Chrome
Internet Explorer
Internet Explorer
Internet Explorer

ComboBoxMultiselect Add-on - Vaadin Add-on Directory

Client-side multisectable ComboBox ComboBoxMultiselect Add-on - Vaadin Add-on Directory
The ComboBoxMultiselect component is a client-side Widget. As example was used the ComboBox from Vaadin and the VFilterSelect from Vaadin. Features: - multiselect with checkbox - clear selection option Plans for the future: - add scss
Online