How to create multi-line tooltip text in GWT

I need to show tooltip text in several lines, but the setTitle()method in just ignores the character \n?

Can this be achieved?

+5
source share
2 answers

If you use the title property, it is not possible to have a multi-line tooltip. This is not a GWT problem, but a problem with the implementation / handling of the browser tooltip. If you really need a multi-line tooltip, use the pop-up toolbar or DecoratedPopupPanel .

, setTitle, , .

+10

setTitle , \n .

+1

All Articles