User Tools

Site Tools


vaadin_buttongroup

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).

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);

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 .

Not only buttons but also ComboBox and TextField can be grouped with Button.

vaadin_buttongroup.txt · Last modified: 2015/03/12 13:29 by mihael