Topic: Tooltips not working inside datatables

softcon premium asked 2 years ago


*Expected behavior*Tooltips should work on items within a datatable

Resources (screenshots, code snippets etc.)https://mdbootstrap.com/snippets/standard/softcon/3626255


Michał Duszak staff answered 2 years ago


Re-init of the tooltip will bring them to work.

https://mdbootstrap.com/snippets/standard/m-duszak/3629148

const tooltips = document.querySelectorAll('[data-mdb-toggle="tooltip"]')
tooltips.forEach((tooltip) => {
  const tooltipInstance = new mdb.Tooltip(tooltip)
})

softcon premium commented 2 years ago

Thanks, it worked



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: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.2
  • Device: Pc
  • Browser: all
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes