defaults.xml 814B

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <dt-example table-type="html" order="1">
  3. <css lib="datatables tabletools" />
  4. <js lib="jquery datatables tabletools">
  5. <![CDATA[
  6. $.fn.dataTable.TableTools.defaults.aButtons = [ "copy", "csv", "xls" ];
  7. $(document).ready(function() {
  8. $('#example').DataTable( {
  9. dom: 'T<"clear">lfrtip'
  10. } );
  11. } );
  12. ]]>
  13. </js>
  14. <title lib="TableTools">Defaults</title>
  15. <info><![CDATA[
  16. 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.
  17. ]]></info>
  18. </dt-example>