$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sExtends": "xls",
"sButtonText": "Hello world",
"sSwfPath": "<?=base_url()?>verkstad/lib/TableTools/media/swf/copy_csv_xls.swf",
"fnCellRender": function ( sValue, iColumn ) {
alert('asdas');
// Append the text 'TableTools' to column 5
if ( iColumn === 5 ) {
return sValue +" TableTools";
}
return sValue;
}
}
});
});
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.