Skip to content

CssLayout

appreciated edited this page Aug 5, 2017 · 3 revisions

Styles

You can choose from the following v-component-group styles (additionally to the default valo one)

Creation

Create the Label as follows

Code Example Vaadin 8

CssLayout group = new CssLayout();
// Take one of the constants from below
group.addStyleName(JAVA_CONSTANT1);
// Then add your components to the component group
group.addComponents(...);

Code Example Vaadin 7 and 8

CssLayout group = new CssLayout();
// Take one of the constants from below
group.addStyleName(JAVA_CONSTANT1);
// Then add your components to the component group
group.addComponent(...);
group.addComponent(...);
group.addComponent(...);

Label styles

Description Java Constant Stylename
Default LAYOUT_COMPONENT_GROUP "v-component-group"
Flat LAYOUT_COMPONENT_GROUP_FLAT "v-component-group flat"
Material LAYOUT_COMPONENT_GROUP_MATERIAL "v-component-group material"

Clone this wiki locally