Custom HTML tooltip content

Hi! Is it possible to customise the contents displayed with a tooltip? For example, instead of just a string of text, being able to define the HTML that is shown.

At the moment I am able to just show a string of text after defining the “tooltip” property of a component.

Thanks!

Best,

Ado

Hello and welcome,

You might be able to make use of the popovers module in the anvil-extras package. There’s a clone there you can try immediately.

There’s also a CSS post about tooltips you can find by searching on the forum, which may help.

5 Likes

As @campopianoa stated, I will personally recommend popovers instead of tooltips if you want to avoid messing around with CSS. You also have much more control over them and they will likely look better on your app.

1 Like

This is exactly what I was looking for! Thank you!