alter_buttons.xml 899B

1234567891011121314151617181920212223242526
  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. $(document).ready(function() {
  7. $('#example').DataTable( {
  8. dom: 'T<"clear">lfrtip',
  9. tableTools: {
  10. "aButtons": [ "copy", "print" ]
  11. }
  12. } );
  13. } );
  14. ]]>
  15. </js>
  16. <title lib="TableTools">Button arrangement</title>
  17. <info><![CDATA[
  18. TableTools makes it very simple to arrange the buttons in the toolbar as you see fit. Using the `aButtons` parameter you can use any of the [predefined buttons](http://datatables.net/extensions/tabletools/buttons) or [customised buttons](http://datatables.net/extensions/tabletools/button_options). The example below shows how TableTools can be initialised to provide only the 'copy-to-clipboard' and 'print view' options (i.e. no save to local file option is available).
  19. ]]></info>
  20. </dt-example>