summaryrefslogtreecommitdiffstats
path: root/documentation/components/components-listselect.asciidoc
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2016-07-19 15:34:25 +0300
committerArtur Signell <artur@vaadin.com>2016-08-05 10:19:45 +0300
commit60cf69071233b906bbb52cd3c0a3785d075f4a54 (patch)
tree43a7370ec97a0686daa1903ecd716224c8d373a8 /documentation/components/components-listselect.asciidoc
parent69f703100ed57720672467e6e53319781cb8ebc9 (diff)
downloadvaadin-framework-60cf69071233b906bbb52cd3c0a3785d075f4a54.tar.gz
vaadin-framework-60cf69071233b906bbb52cd3c0a3785d075f4a54.zip
BoV: Components/ListSelect,NativeSelect,OptionGroup: Small API changes
Change-Id: Id057e602ed286025a80afbd69ecd44f770158297
Diffstat (limited to 'documentation/components/components-listselect.asciidoc')
-rw-r--r--documentation/components/components-listselect.asciidoc8
1 files changed, 3 insertions, 5 deletions
diff --git a/documentation/components/components-listselect.asciidoc b/documentation/components/components-listselect.asciidoc
index 261b68db46..88343ee606 100644
--- a/documentation/components/components-listselect.asciidoc
+++ b/documentation/components/components-listselect.asciidoc
@@ -22,12 +22,10 @@ visually identical in both modes.
[source, java]
----
// Create the selection component
-ListSelect select = new ListSelect("The List");
+ListSelect<String> select = new ListSelect<>("The List");
-// Add some items (here by the item ID as the caption)
-select.addItems("Mercury", "Venus", "Earth", ...);
-
-select.setNullSelectionAllowed(false);
+// Add some items
+select.setItems("Mercury", "Venus", "Earth", ...);
// Show 5 items and a scrollbar if there are more
select.setRows(5);