You are viewing documentation for Vaadin Framework 8 and related products View documentation for Vaadin Framework 7 ›
NativeSelect · Vaadin
Vaadin Framework - Server-Side Components - NativeSelect
 Edit This Page

NativeSelect

Live Demo

NativeSelect is a selection component allows selecting an item from a drop-down list. It is implemented with the native selection input of web browsers, using the HTML <select> element.

// Create the selection component
NativeSelect<String> select =
    new NativeSelect<>("Native Selection");

// Add some items
select.setItems("Mercury", "Venus", ...);
nativeselect basic
Figure 1. The NativeSelect Component

Common selection component features are described in Selection Components.

CSS Style Rules

.v-select {}
  .v-select-select {}

The component has a v-select overall style. The native select element has v-select-select style.