≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
Tooltip inside a table cell
Tooltip inside a table cell
kidalex
Posts: 10
Questions: 0
Answers: 0
October 2013
edited October 2013
in
General
What about be the best way to attach Bootstrap's tooltip to an icon inside a datatable's cell? The syntax is: $("#element").tooltip();
Replies
Litash
Posts: 4
Questions: 0
Answers: 0
October 2013
edited October 2013
take a look at this http://datatables.net/ref#sClass
Assign a css class to the cell, then use $(".classname").tooltip();
another way is maybe you can give "title" attribute to the cell, that will display a mouse over tooltip on that cell.
kidalex
Posts: 10
Questions: 0
Answers: 0
October 2013
Thanks, Litash. But in my case it has to be two different icons with two different tooltips inside a single cell.
Litash
Posts: 4
Questions: 0
Answers: 0
November 2013
Hi kidalex, if your icon is , you can simply use the standard HTML for image.
[code][/code]
This discussion has been closed.
Replies
Assign a css class to the cell, then use $(".classname").tooltip();
another way is maybe you can give "title" attribute to the cell, that will display a mouse over tooltip on that cell.
[code][/code]