helipopper
helipopper copied to clipboard
Disable all tippy programmatically
I'm submitting a...
[x] Support request
Hi, is it possible to disable all the configured tooltips programmatically? I have an application wher I don't want to show any tippy based on some condition decided by a observable stream.
The solution for now is to calculate the required conditions (based on platform, screen size and custom user setting) and add or remove a class to the entire body that hide all .tippy-box child elements, but is there any other way supported by the library?
Thanks
Do you have multiple tooltips that are opened at the same time?
Hi! No, I don't have..
So what's the use case?
I want have tooltips only when some conditions are true. For example screen size is larger than x pixels, to target only computers and tablets and not smartphones (in our app the condition is more complex). Instead of using isEnabled input property for each place where I use tippy directive, I wonder if exist a global way to disable all tooltips.
Currently, no. You're welcome to create a PR
I want have tooltips only when some conditions are true
you can use disable and enable tooltip with run time change detect and sending run time conditions