Author Topic: Show tabular data in cell hover over  (Read 540 times)

gopigupta

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 38
    • View Profile
Show tabular data in cell hover over
« on: March 05, 2025, 08:03:51 am »
Hello,

I want to display tabular data as shown below on cell hover over. How can I achieve it?

DayDateHours
Wed05-Mar-20258.00
Fri07-Mar-20258.00


Please let me know if you need more information
Thanks





paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6373
    • View Profile
Re: Show tabular data in cell hover over
« Reply #1 on: March 05, 2025, 03:45:07 pm »
Rich html content can be displayed in the cell tooltips by using attr property in column.render callback.

Code: [Select]
render: function( ui ){
   return {
attr: {
title: "<b>Rich</b> <i>Text<i>!"
}
   }
}

and creating pqTooltip in the create callback in main grid options.

Code: [Select]
create: function (evt, ui) {               
        this.widget().pqTooltip();
}