Hello Gerrit!
The component is working very good in our app.
Is it possible to style the tooltip with HTML?
Sometimes we have got more structured information in out tips.
That would be a nice feature.
Thank you
Thomas
Hello Gerrit!
The component is working very good in our app.
Is it possible to style the tooltip with HTML?
Sometimes we have got more structured information in out tips.
That would be a nice feature.
Thank you
Thomas
Hello Thomas
fortunately this is already possible.
Simply pass a String containing HTML like “<table style="width:100%"><tr><th>A</th><th>B</th></tr><tr><td>a</td><td>b</td></tr><tr><td>a</td<td>b</td></tr></table>
” into #setTooltip
and it will be applied properly.
But there are two things to make sure upfront.
First any newline character will be replaced by “<br>
” as it enables displaying preformatted text easily.
Secondly there are some limitations regarding the size of a tooltip so it wont be able to display large tables or texts.
Best regards
Gerrit
;-)