Skip to content

ComboBox

appreciated edited this page Aug 5, 2017 · 7 revisions

Styles

You can choose from a the following ComboBox styles

Creation

Create the ComboBox as follows

Code Example Vaadin 8 only

ComboBox<String> combobox = new ComboBox<>("Click Me!");
// Take one of the constants from below
combobox.addStyleNames(JAVA_CONSTANT1, JAVA_CONSTANT2); 
// Now you can add the Button to your View

Code Example Vaadin 7 & 8

ComboBox<String> combobox = new ComboBox<>("Click Me!");
// Take one of the constants from below
combobox.addStyleNames(JAVA_CONSTANT1, JAVA_CONSTANT2); 
// Now you can add the Button to your View

ComboBox styles

public static final String = "custom";
public static final String COMBOBOX_FLOATING = "floating";
Description Java Constant Stylename
Default - -
Borderless COMBOBOX_BORDERLESS "borderless"
Round COMBOBOX_CUSTOM "custom"
Floating Action COMBOBOX_FLOATING "floating"
Clone this wiki locally