From d8e1ca9ad8ce76185837053a730676fa9fa18352 Mon Sep 17 00:00:00 2001
From: Pekka Hyvönen <pekka@vaadin.com>
Date: Mon, 19 Dec 2016 19:31:36 +0200
Subject: Fix documentation for /components (#8051)

Added warning where not updated.
Removed outdated documentation.
Tried to fix parts where it was feasible.
---
 documentation/components/components-twincolselect.asciidoc | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

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

diff --git a/documentation/components/components-twincolselect.asciidoc b/documentation/components/components-twincolselect.asciidoc
index cf0ed36e37..b5306359cb 100644
--- a/documentation/components/components-twincolselect.asciidoc
+++ b/documentation/components/components-twincolselect.asciidoc
@@ -46,14 +46,13 @@ select.setItems("Mercury", "Venus", "Earth", "Mars",
 select.setRows(select.size());
 
 // Preselect a few items
-select.setSelection("Venus", "Earth", "Mars");
+select.select("Venus", "Earth", "Mars");
 
 // Handle value changes
-select.onSelect(selectedItems ->
+select.addSelectionListener(event ->
     layout.addComponent(
-        new Label("Selected: " + selectedItems)));
+        new Label("Selected: " + event.getNewSelection())));
 ----
-See the http://demo.vaadin.com/book-examples-vaadin7/book#component.select.twincolselect.captions[on-line example, window="_blank"].
 
 The resulting component is shown in <<figure.components.twincolselect.basic>>.
 
-- 
cgit v1.2.3

