Style tooltip from data attributes #1129
-
Wondering if it's possible to style the tooltip directly from the element that takes the While we can render many Basically, looking to go from this:
to something like this:
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi @fatton139.
|
Beta Was this translation helpful? Give feedback.
-
I tried a few different methods, including the one from the previous comment, and all of them almost work, but not quite. One of the issues is that internally the tooltip "ignores" changes to the You're welcome to open an issue (and maybe even submit a PR if you'd like) requesting for a new attribute Alternatively, although you're correct to follow the suggestion in the troubleshooting page, depending on the number of different tooltips your application requires, it may have no significant impact on your performance to have multiple instances of it. Something like 10-20 might still be fine, though you'll have to test it. |
Beta Was this translation helpful? Give feedback.
-
Thanks @fatton139 for the contribution! |
Beta Was this translation helpful? Give feedback.
data-tooltip-class-name
attribute available on[email protected]
.Thanks @fatton139 for the contribution!