Tooltips not working inside datatables


Topic: Tooltips not working inside datatables

softcon pro premium asked 3 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 3 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 pro premium commented 3 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
  • User: Pro
  • 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