Differences

This shows you the differences between two versions of the page.

Link to this comparison view

vaadin_buttongroup [2015/03/12 14:29]
vaadin_buttongroup [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== Vaadin Valo Theme Button Group ======
 +The Vaadin Chameleon Theme support the styling of multiple buttons to one button group. The new Valo Theme also support this though the coding is a little different (easier).
  
 +<sxh java>
 +CssLayout group = new CssLayout();
 +group.addStyleName("v-component-group");
 +
 +button = new Button("One");
 +group.addComponent(button);
 +button = new Button("Two");
 +group.addComponent(button);
 +button = new Button("Three");
 +group.addComponent(button);
 +</sxh>
 +
 +See Valo Demo at https://vaadin.com/valo , source at github https://github.com/vaadin/valo-demo/blob/master/src/main/java/com/vaadin/tests/themes/valo/ButtonsAndLinks.java .
 +{{tag>devel java vaadin}}
 +
 +
 +<note tip>Not only buttons but also ComboBox and TextField can be grouped with Button.</note>