How to export only selected rows
How to export only selected rows
Capamania
Posts: 233Questions: 81Answers: 5
How can I export only the selected rows? In my case all visible rows gets exported. In addition, how can I change e.g. the font-size of the exported data?
$(document).ready(function() {
var dataTable = $('#example').DataTable( {
dom: 'Blfrtip',
select: {
style: 'multi',
},
buttons: [
'colvis',
'selectAll',
'selectNone',
{ extend: 'collection',
text: 'Export',
buttons: ['copy', 'csv', 'excel', 'pdf', 'print']
}
]
} );
} );
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
http://www.datatables.net/forums/discussion/29493/using-select-with-buttons-not-working-correctly
Unfortunately it's not working. What did I do wrong? This is what I tried ...