diff options
author | elmot <elmot@vaadin.com> | 2015-09-25 16:40:44 +0300 |
---|---|---|
committer | elmot <elmot@vaadin.com> | 2015-09-25 16:40:44 +0300 |
commit | a1b265c318dbda4a213cec930785b81e4c0f7d2b (patch) | |
tree | b149daf5a4f50b4f6446c906047cf86495fe0433 /documentation/components/components-nativeselect.asciidoc | |
parent | b9743a48a1bd0394f19c54ee938c6395a80f3cd8 (diff) | |
download | vaadin-framework-a1b265c318dbda4a213cec930785b81e4c0f7d2b.tar.gz vaadin-framework-a1b265c318dbda4a213cec930785b81e4c0f7d2b.zip |
Framework documentation IN
Change-Id: I767477c1fc3745f9e1f58075fe30c9ac8da63581
Diffstat (limited to 'documentation/components/components-nativeselect.asciidoc')
-rw-r--r-- | documentation/components/components-nativeselect.asciidoc | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/documentation/components/components-nativeselect.asciidoc b/documentation/components/components-nativeselect.asciidoc new file mode 100644 index 0000000000..f27c797eb9 --- /dev/null +++ b/documentation/components/components-nativeselect.asciidoc @@ -0,0 +1,49 @@ +--- +title: NativeSelect +order: 18 +layout: page +--- + +[[components.nativeselect]] += [classname]#NativeSelect# + +[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. + + + + |