diff options
Diffstat (limited to 'documentation/components/components-optiongroup.asciidoc')
-rw-r--r-- | documentation/components/components-optiongroup.asciidoc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/documentation/components/components-optiongroup.asciidoc b/documentation/components/components-optiongroup.asciidoc index 3fd8209eb3..f25e3dfe13 100644 --- a/documentation/components/components-optiongroup.asciidoc +++ b/documentation/components/components-optiongroup.asciidoc @@ -29,11 +29,13 @@ enabled with [methodname]#setMultiSelect()#. [source, java] ---- // A single-select radio button group -OptionGroup<String> single = new OptionGroup<>("Single Selection"); +OptionGroup<String> single = + new OptionGroup<>("Single Selection"); single.setItems("Single", "Sola", "Yksi"); // A multi-select check box group -OptionGroup<String> multi = new OptionGroup<>("Multiple Selection"); +OptionGroup<String> multi = + new OptionGroup<>("Multiple Selection"); multi.setMultiSelect(true); multi.setItems("Many", "Muchos", "Monta"); ---- |