<?xml version="1.0" encoding="UTF-8" ?>
<dt-example table-type="html" order="1">
<css lib="datatables tabletools" />
<js lib="jquery datatables tabletools">
<![CDATA[
$(document).ready(function() {
$('#example').DataTable( {
dom: 'T<"clear">lfrtip',
tableTools: {
"sSwfPath": "../swf/copy_csv_xls_pdf.swf"
}
} );
} );
]]>
</js>
<title lib="TableTools">Setting the SWF path</title>
<info><![CDATA[
TableTools uses a Flash SWF file to provide the ability to copy text to the system clipboard and save files locally. TableTools must be able to load the SWF file in order to provide these facilities. If you aren't using the same directory structure as the TableTools package, you will need to set the `sSwfPath` TableTools parameter, as shown in this example.
Note that TableTools ships with two different SWF files - the only difference between them is that one of them provides the ability to save PDF files while the other doesn't. The trade off is that the PDF capable file is significantly larger in size (56K v 2K).
]]></info>
</dt-example>
|