Custom HTML for Print button with TableTools

Custom HTML for Print button with TableTools

SetekSetek Posts: 4Questions: 0Answers: 0
edited August 2013 in TableTools
Hi all,

Just wondering if there's any way to use custom HTML that will have the same functionality as the pre-made version?

I want to have the button amongst a list of other utility buttons, like refresh page etc.

I've tried using the same ID and classes as the generated print button, but it doesn't work.

This is the code I'm using to make the generated print button, which works:

[code]var colHeight = parseInt($('.middle-column').height()) - 250;

var oTable = $('.scrolltable.asts table').dataTable({
"sScrollX": "100%",
"sScrollXInner": "100%",
"sScrollY": colHeight,
"bDestroy": true,
"bScrollCollapse": true,
"bPaginate": false,
"bFilter": false,
"bInfo": false,
"bSort": false,
"oTableTools": { "sSwfPath": "images/copy_csv_xls_pdf.swf", "aButtons": [ "print" ] }
});

new FixedColumns( oTable, { "iLeftColumns": 2 } );

var oTableTools = new TableTools( oTable, { "aButtons": [ "print" ] } );

$('.scrolltable.asts').after( oTableTools.dom.container );[/code]

Cheers
This discussion has been closed.