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, 3 weeks ago
Carriage return in label of OptionGroup in FormLayout
Hello everyone,
like statet in the title of this thread I need to do a carriage return in a label of a optiongroup because it's very long as you can see in the screenshot.
How can I achieve this?
Last updated on
You need to do a bit of CSS to accomplish that (please use more specific selectors to avoid problems down the road)
.v-formlayout .v-caption {
max-width: 200px; /*Whatever you need*/
white-space: normal; /*Have the caption wrap when it runs out of space instead of overflowing*/
}
Last updated on
You cannot reply to this thread.