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.

Java

  1. // Create the selection component
  2. NativeSelect<String> select =
  3. new NativeSelect<>("Native Selection");
  4. // Add some items
  5. select.setItems("Mercury", "Venus", ...);

nativeselect basic

The NativeSelect Component

Common selection component features are described in “Selection Components”.

CSS Style Rules

CSS

  1. .v-select {}
  2. .v-select-select {}

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