From 4130f1d87d6ab387a363a4e44e8746eddc049d13 Mon Sep 17 00:00:00 2001
From: Pekka Hyvönen <pekka@vaadin.com>
Date: Thu, 5 Jan 2017 18:09:32 +0200
Subject: Update component docs for 8 except Grid

---
 documentation/components/components-listselect.asciidoc | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'documentation/components/components-listselect.asciidoc')

diff --git a/documentation/components/components-listselect.asciidoc b/documentation/components/components-listselect.asciidoc
index 88343ee606..4573f77c97 100644
--- a/documentation/components/components-listselect.asciidoc
+++ b/documentation/components/components-listselect.asciidoc
@@ -14,9 +14,7 @@ endif::web[]
 
 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.
+component, a scrollbar is shown. The component allows selecting multiple values.
 
 
 [source, java]
@@ -29,6 +27,11 @@ select.setItems("Mercury", "Venus", "Earth", ...);
 
 // Show 5 items and a scrollbar if there are more
 select.setRows(5);
+
+select.addValueChangeListener(event -> {
+    Set<String> selected = event.getNewSelection();
+    Notification.show(selected.size() + " items.");
+});
 ----
 
 The number of visible items is set with [methodname]#setRows()#.
-- 
cgit v1.2.3

