summaryrefslogtreecommitdiffstats
path: root/documentation/components/components-nativeselect.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/components/components-nativeselect.asciidoc')
-rw-r--r--documentation/components/components-nativeselect.asciidoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/components/components-nativeselect.asciidoc b/documentation/components/components-nativeselect.asciidoc
index af0b3c01e7..2e97ccac42 100644
--- a/documentation/components/components-nativeselect.asciidoc
+++ b/documentation/components/components-nativeselect.asciidoc
@@ -20,10 +20,10 @@ the native selection input of web browsers, using the HTML
[source, java]
----
// Create the selection component
-NativeSelect select = new NativeSelect("Native Selection");
+NativeSelect<String> select = new NativeSelect<>("Native Selection");
// Add some items
-select.addItems("Mercury", "Venus", ...);
+select.setItems("Mercury", "Venus", ...);
----
The [methodname]#setColumns()# allows setting the width of the list as