Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oTable = $('#table').DataTable({
- "stateSave": true,
- responsive: true,
- "stateDuration": 3600,
- ajax: {
- url: "/ajax/foobar"
- },
- "oColVis": {
- "buttonClass": 'btn btn-default',
- "buttonText": 'Columns'
- },
- dom: '<"datatable-header"RTCfl>t<"datatable-footer"ip>',
- tableTools: {
- sSwfPath: "/resources/media/swf/copy_csv_xls_pdf.swf",
- aButtons: [
- {
- sExtends: 'copy',
- sButtonText: 'Copy',
- sButtonClass: 'btn btn-default'
- },
- {
- sExtends: 'print',
- sButtonText: 'Print',
- sButtonClass: 'btn btn-default',
- bShowAll: true
- },
- {
- sExtends: 'collection',
- sButtonText: 'Export <span class="caret"></span>',
- sButtonClass: 'btn btn-primary',
- aButtons: [ 'csv', 'xls', 'pdf' ]
- }
- ]
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement