Tool Tip

How to create a tooltip to add more information to a table row.

Instead of adding column after column with information, making tables busy and sometimes impossible to fit in the screen, a good solution is a tooltip that will display more information when passing the mouse over the "?" icon at the begining of the table.

 

To add a tooltip simply use the $tooltip array variable, on each value of the array, add text :column_name

for example:

 

$tooltip = array("
Telephone:TEL,
Email:EMAIL,
Address:ADDRESS,
Postal Code:ZIP
");

 

Another way:

 

$tooltip= array();
array_push($tooltip,"Telephone:TEL");
array_push($tooltip,"Email:EMAIL");
array_push($tooltip,"Address:ADDRESS");
array_push($tooltip,"Postal Code:ZIP");
 
The tooltip will show the information of each array value in a different line
 
Telephone: 514 123 4456
Address: 1234 street name
Postal Code: A1B 1C2 

 

Get a Quote

Get a Quote