diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2015-12-03 14:59:05 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-12-03 14:59:12 +0000 |
commit | 2af72ba9636bec70046394c41744f89ce4572e35 (patch) | |
tree | ccb3dc2d2239585f8c3f79eb5f131ff61ca9ce86 /documentation/components/components-listselect.asciidoc | |
parent | 8aa5fabe89f2967e966a64842a608eceaf80d08f (diff) | |
download | vaadin-framework-2af72ba9636bec70046394c41744f89ce4572e35.tar.gz vaadin-framework-2af72ba9636bec70046394c41744f89ce4572e35.zip |
Revert "Merge branch 'documentation'"7.6.0.beta2
This reverts commit f6874bde3d945c8b2d1b5c17ab50e2d0f1f8ff00.
Change-Id: I67ee1c30ba3e3bcc3c43a1dd2e73a822791514bf
Diffstat (limited to 'documentation/components/components-listselect.asciidoc')
-rw-r--r-- | documentation/components/components-listselect.asciidoc | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/documentation/components/components-listselect.asciidoc b/documentation/components/components-listselect.asciidoc deleted file mode 100644 index 900147ef1c..0000000000 --- a/documentation/components/components-listselect.asciidoc +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: ListSelect -order: 17 -layout: page ---- - -[[components.listselect]] -= [classname]#ListSelect# - -The [classname]#ListSelect# component is list box that shows the selectable -items in a vertical list. If the number of items exceeds the height of the -component, a scrollbar is shown. The component allows both single and multiple -selection modes, which you can set with [methodname]#setMultiSelect()#. It is -visually identical in both modes. - - -[source, java] ----- -// Create the selection component -ListSelect select = new ListSelect("The List"); - -// Add some items (here by the item ID as the caption) -select.addItems("Mercury", "Venus", "Earth", ...); - -select.setNullSelectionAllowed(false); - -// Show 5 items and a scrollbar if there are more -select.setRows(5); ----- - -The number of visible items is set with [methodname]#setRows()#. - -[[figure.components.listselect.basic]] -.The [classname]#ListSelect# Component -image::img/listselect-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 {} - option {} ----- - -The component has an overall [literal]#++v-select++# style. The native -[literal]#++<select>++# element has [literal]#++v-select-select++# style. The -items are represented as [literal]#++<option>++# elements. - - - - |