Skip to content
appreciated edited this page Aug 5, 2017 · 3 revisions

Styles

You can choose from the following Label styles (additionally to the default valo ones)

Creation

Create the Label as follows

Code Example Vaadin 7 and 8

Label label = new Label();
// Take one of the constants from below
label.addStyleNames(JAVA_CONSTANT1, JAVA_CONSTANT2);
// Now you can add the Button to your View

Label styles

Description Java Constant Stylename
Default - -
Default LABEL_SUCCESS "success"
Default LABEL_FAILURE "failure"
Default LABEL_SUCCESS + LABEL_BORDERLESS "success" + "borderless"
Default LABEL_FAILURE + LABEL_BORDERLESS "failure" + "borderless"
Clone this wiki locally