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.
Hi, is it possible to write a tooltip with line break? I tried something like that:
myELement.setAttribute("title", "line \n break");
In a basic Html file title="line
break" works fine (in Chrome).
Have you tried ?
--> relevant SO post, Difference between ASCII Chr(10) and Chr(13)
yes, unfortunately it does not work in Vaadin either. When I inspect the item with chrome the title attribute is the same as in my test Html file ... BUT it dont break the line in Vaadin.
Can you try both, to simulate a CRLF? --> line break
Also - found in another related SO post - try using the style white-space: pre-line;
Or use <br> tags, while setting the attribute data-html="true" on myElement. found here
Thanks for your help so far but it does not work.