NativeSelect

Live Demo

NativeSelect is a drop-down selection component implemented with the native selection input of web browsers, using the HTML <select> element.

Java

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

The setColumns() allows setting the width of the list as “columns”, which is a measure that depends on the browser.

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.