Label configuration

Hi there, on the demo page of Valo, at the Label section, I see some different type of text elements, titles, subtitles, etc. Is it possible the set this from the Label object, or (if not) with some constans css class from ValoTheme Object, or I have to write my CSS? It’s a comlete theme, I want to use your stuff, thanks.

Hi,

if your application is using a theme based on Valo (which is the default), you should be able to use the constants from ValoTheme. So for example,

Label label = new Label("header");
label.addStyleName(ValoTheme.LABEL_H1);

will give you a large-size Label.

-Olli

Oh, thank you, I just didn’t find them :slight_smile: