Tooltip for column header

Tooltip for column header

mathiemathie Posts: 36Questions: 0Answers: 0
edited September 2009 in General
Hello,

I'm just found DataTables yesterday and loving it. However, when porting from our existing grid to DT, I have a few questions. How do I enable tooltip for the column header that explains the meaning of data in this column?

Thanks for a wonderful plugin.

Replies

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin
    HI mathie,

    Great to hear it's going well with DataTables :-) This functionality isn't built-in to DataTables directly, but it is fairly easy to do using a generic tooltip plug-in for jQuery - or anything else!

    If you have a look at this example ( http://datatables.net/examples/advanced_init/events_pre_init.html ) you will be able to see how I've added tooltips for the TD elements in the body. The code could be easily modified to deal with the TH elements in the header instead.

    Regards,
    Allan
This discussion has been closed.