<?xml version="1.0" encoding="UTF-8" ?>
<dt-example table-type="html" order="1">
<css lib="datatables tabletools" />
<js lib="jquery datatables tabletools">
<![CDATA[
$.fn.dataTable.TableTools.defaults.aButtons = [ "copy", "csv", "xls" ];
$(document).ready(function() {
$('#example').DataTable( {
dom: 'T<"clear">lfrtip'
} );
} );
]]>
</js>
<title lib="TableTools">Defaults</title>
<info><![CDATA[
TableTools provides the ability to override the default initialisation parameters that are used when creating a new instance. This this particularly useful if you have multiple tables which you want to have the same TableTools behaviour - rather than declaring the structure multiple times, you can just set the defaults once. This example shows how to alter the default buttons.
]]></info>
</dt-example>
|