How to add icon in columns
How to add icon in columns
drakula1234
Posts: 58Questions: 1Answers: 0
I need to add icon in the column as a value and make that as a tool tip.. any suggestions from the experts how I can do that. Thanks in Advance
This discussion has been closed.
Replies
The image tag ends up looking like this:
[code]
"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
var data = aData[3];
var imgTag = '';
$('td:eq(3)', nRow).html(imgTag);
return nRow;
},[/code]
A requirement is also to have modal dialog appear on hover. I need to pass the data to the modal. I tried different possibilities of declaring a function on mouseenter in the span tag and then pass it to the modal but that didn't work for me. Below is the jquery code to open the modal.
[code]
$(".mytext").mouseover(
function() {
var width = 250;
var height = 270;
var posX = $(this).offset().left - $(document).scrollLeft()
- width + $(this).outerWidth();
var posY = $(this).offset().top - $(document).scrollTop()
+ $(this).outerHeight();
//alert(posX + ", " +posY);
$(".mytext").dialog({
resizable:false,
width : width,
height : height,
position : [ posX, posY ]
});
});
[/code]