destroy tooltip event
can i destroy tooltip event after show with javascript? https://flowbite.com/docs/components/tooltips/#methods
method available only show and hide, but after hide method tooltip out every
Hey @HPODEV,
We'll add this feature in the next update.
Can you give me a reference (code) on how to destroy it? Do you mean removing the instance of the object completely?
hi @zoltanszogyenyi , yes completly remove object and event, for example:
- show tooltip now with .show() method or simple with add data-tooltip- into dom
- new method destroy() pass element id (when present data-tooltip-target attribute) or id
- the tooltip should no longer be displayed until I re-execute the show / enable method
I think this method is also indispensable for modals, toast, dropdown, etc ...
any update?
we need this for every component I have this issue with side-navs
Hey peeps,
I've added the destroy() method to the Tooltip object. Will do this for everything else.
Here's the PR if you want to contribute:
https://github.com/themesberg/flowbite/pull/680
This update will also add a global instances object that will allow you to get access to objects created via data attributes.
Hey everyone!
Flowbite v2.0 fixes this issue by bringing a brand new Instances Manager and the destroy methods.
Please read more about it here:
https://flowbite.com/docs/getting-started/javascript/ https://github.com/themesberg/flowbite/releases/tag/v2.0.0
Cheers, Zoltan