Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
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.
Last updated on
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
Last updated on
You cannot reply to this thread.