diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2016-12-19 19:31:36 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2016-12-19 19:31:36 +0200 |
commit | d8e1ca9ad8ce76185837053a730676fa9fa18352 (patch) | |
tree | 40a0e85d909953c68bbe13c4eade04c9a4fd5860 /documentation/components/components-twincolselect.asciidoc | |
parent | 33624758f960e9d2f0f67dadd307ae81fd427d65 (diff) | |
download | vaadin-framework-d8e1ca9ad8ce76185837053a730676fa9fa18352.tar.gz vaadin-framework-d8e1ca9ad8ce76185837053a730676fa9fa18352.zip |
Fix documentation for /components (#8051)
Added warning where not updated.
Removed outdated documentation.
Tried to fix parts where it was feasible.
Diffstat (limited to 'documentation/components/components-twincolselect.asciidoc')
-rw-r--r-- | documentation/components/components-twincolselect.asciidoc | 7 |
1 files changed, 3 insertions, 4 deletions
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>>. |