joelgrondrup free asked 3 years ago


Hi guys.

How would I hide all tooltips in a simple as possible javascript command?

I'm showing the tooltips with data attributes:

data-mdb-toggle="tooltip" data-mdb-placement="top" data-mdb-trigger="hover" data-mdb-container="body" title="my tooltip"

The reason I'm asking is that sometimes the tooltips will not go away inside a slider when the sliding takes place.


joelgrondrup free answered 3 years ago


Thanks for this. Brilliant.


Małgorzata Olborska staff answered 3 years ago


Hi, You can close all snippets at once by call hide method on their instance.

Look at snippet to check how to get all tooltips on the page and close/open them.

https://mdbootstrap.com/snippets/standard/molborska/2862437#js-tab-view



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: 3.0.0
  • Device: Mac
  • Browser: Chrome
  • OS: OS X
  • Provided sample code: No
  • Provided link: No