Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82608

I need help with export options

$
0
0

I finally got things set up and working the way i want but the export option exports every row even when I have selected individual rows. Here is my code:

$(document).ready(function() {
var dataTable = $('#cases').DataTable( {
dom: 'B<"clear">lfrt<"bottom"ip>',
colReorder: true,
stateSave: true,
select: {
style: 'multi',
},
buttons: [
{
text: 'Add New Case',
action: function ( e, dt, node, config ) {
window.location = '/add-a-case/';
}
},
'colvis',
'selectAll',
'selectNone',
{ extend: 'collection',
text: 'Export',
buttons: ['copy', 'csv', 'excel', 'pdf', 'print']
}
]
} );
} );

Can you please take a look and tell me what I am missing. Thank you all so much!


Viewing all articles
Browse latest Browse all 82608

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>