Author Topic: add a tooltip with html code in PQGrid cell.  (Read 3285 times)

edevanel

  • Newbie
  • *
  • Posts: 1
    • View Profile
add a tooltip with html code in PQGrid cell.
« on: February 16, 2017, 03:30:53 pm »
Hello, I'm new on this forum.
I have a PQGrid table and I want to add  tooltips with html code linked to specific cells.

Exemple :
cell :
Code: [Select]
A/B/CtoolTip :
Code: [Select]
A : First letter </br> B: Second Letter</br> C : Third Letter
I'm working with
/**
 * ParamQuery Pro v3.0.0
*/

My table is use local pages.
I use render function to display title ou links.

I try to find a solution on PQGrid doc and forum.
Could you help me?
Etienne

ali

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: add a tooltip with html code in PQGrid cell.
« Reply #1 on: February 25, 2017, 10:03:19 pm »
In the render function return html with title='tooltip' - what ever text you set in the title attribute will appear as tool tip in most browsers. See for more info;

https://www.w3schools.com/tags/att_global_title.asp