Author Topic: tooltip property for detailModel  (Read 2702 times)

interloper10

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 14
    • View Profile
tooltip property for detailModel
« on: February 10, 2016, 12:01:36 am »
This is just a suggestion for future perhaps.

I followed topic Hide detailModel if it's empty
http://paramquery.com/forum/index.php?topic=917.msg4605#msg4605

This works perfectly for my use case.

It would be great to be able to set a tool tip on the detail column like to setting the icons.
You would only want to show the tip if the detail was collapsed.

For example "Expand to show order details"


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: tooltip property for detailModel
« Reply #1 on: February 10, 2016, 05:09:50 pm »
It can be done by adding title attribute in rowInit callback.

Code: [Select]
rowInit: function( ui ){
var rd = ui.rowData,
attr = rd.pq_cellattr = rd.pq_cellattr || {};
if( !rd.pq_detail || !rd.pq_detail.show ){
attr.pq_detail = { title: 'Click to expand' };
}
},
« Last Edit: February 10, 2016, 05:21:06 pm by paramquery »

interloper10

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: tooltip property for detailModel
« Reply #2 on: February 10, 2016, 09:41:28 pm »
Very good - thank you!