How to export only selected rows

How to export only selected rows

CapamaniaCapamania Posts: 229Questions: 79Answers: 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

Answers

This discussion has been closed.