![]() |
romaldus 10/5/2016 |
Hi everyone, We know that PHPRunner has jQuery embedded. My question : How can we add tooltips with dynamic data at PHPRunner list pages ? Current Situation: Columns: "Name" "Last Name" "Notes" Data: "John" "Doe" "This user has Toyota car" "..." "..." "..." I want: Columns: "Name" "Last Name" "Notes" Data: "John" "Doe" "Note Icon" If there is not a note, the page should show icon1.gif (i.e. grey icon) and if there is a note, the page should show icon2.gif (i.e. green icon) When I move my mouse over the Note Icon of the first row, a Tooltip with the data "This user has Toyota car" in it should pop up. Can you help me? Thanks
|
M
|
Moise57 author 10/6/2016 |
Hi Romaldus, thanks for contribution. |
![]() |
Admin 10/6/2016 |
Could you post a screenshot that would explain where you need to add that tooltip and how it should look? Just need some visuals. |
M
|
Moise57 author 10/6/2016 |
|
![]() |
Admin 10/7/2016 |
There are many options here. You can use ToolTipster for instance: http://iamceege.github.io/tooltipster/
<link rel="stylesheet" type="text/css" href="tooltipster/dist/css/tooltipster.bundle.min.css" />
$value = '<img src="my-image.png" class="tooltip" title="'.$data["tooltip field"].'" />';
$('.tooltip').tooltipster();
|
M
|
Moise57 author 10/7/2016 |
Cool... |