aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/components/components-nativeselect.asciidoc
diff options
context:
space:
mode:
authorMarkus Koivisto <markus@vaadin.com>2016-01-22 14:55:18 +0200
committerMarkus Koivisto <markus@vaadin.com>2016-01-22 14:55:18 +0200
commit99d6de546c74f0eed230ea8253dda6b85109d2e7 (patch)
tree10fc21c557566fe3241e6e13499df18d80f8dcb2 /documentation/components/components-nativeselect.asciidoc
parent610736d9f373d4b37fd39ff8f90aabd13eab7926 (diff)
downloadvaadin-framework-99d6de546c74f0eed230ea8253dda6b85109d2e7.tar.gz
vaadin-framework-99d6de546c74f0eed230ea8253dda6b85109d2e7.zip
Add documentation to master branch
Change-Id: I2504bb10f1ae73ec0cbc08b7ba5a88925caa1674
Diffstat (limited to 'documentation/components/components-nativeselect.asciidoc')
-rw-r--r--documentation/components/components-nativeselect.asciidoc54
1 files changed, 54 insertions, 0 deletions
diff --git a/documentation/components/components-nativeselect.asciidoc b/documentation/components/components-nativeselect.asciidoc
new file mode 100644
index 0000000000..2b0bea66f7
--- /dev/null
+++ b/documentation/components/components-nativeselect.asciidoc
@@ -0,0 +1,54 @@
+---
+title: NativeSelect
+order: 18
+layout: page
+---
+
+[[components.nativeselect]]
+= [classname]#NativeSelect#
+
+ifdef::web[]
+[.sampler]
+image:{live-demo-image}[alt="Live Demo", link="http://demo.vaadin.com/sampler/#ui/data-input/multiple-value/drop-down-menu]
+endif::web[]
+
+[classname]#NativeSelect# is a drop-down selection component implemented with
+the native selection input of web browsers, using the HTML
+[literal]#++<select>++# element.
+
+
+[source, java]
+----
+// Create the selection component
+NativeSelect select = new NativeSelect("Native Selection");
+
+// Add some items
+select.addItems("Mercury", "Venus", ...);
+----
+
+The [methodname]#setColumns()# allows setting the width of the list as
+"columns", which is a measure that depends on the browser.
+
+[[figure.components.nativeselect.basic]]
+.The [classname]#NativeSelect# Component
+image::img/nativeselect-basic.png[]
+
+Common selection component features are described in
+<<dummy/../../../framework/components/components-selection#components.selection,"Selection
+Components">>.
+
+== CSS Style Rules
+
+
+[source, css]
+----
+.v-select {}
+ .v-select-select {}
+----
+
+The component has a [literal]#++v-select++# overall style. The native
+[literal]#++select++# element has [literal]#++v-select-select++# style.
+
+
+
+