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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Label wrap doesn't work if no space
Hi,
I have the following problem, I am getting some data from another server and view them using Labels. In some values I have really long strings such as PHONENUMBER,PHONENUMBER2,PHONENUMBER3,PHONENUMBER4 etc...
This string doesn't have white space so the word is never wrapped around.
I wouldn't want to 'touch' the String that i'm getting (in order to add white spaces i.e. after a (,) or a (#),
so is there a way for the text to wrap around without having space???
yourLabel.addStyleName("mystyle");
// in theme scss
.mystyle {
word-wrap: break-word;
}
And yes, the above resolution works like a charm!!! :)
Thanks!!!