Export only the selected row?

Export only the selected row?

jimboyjimboy Posts: 20Questions: 9Answers: 0

Hi,

How to export a selected row that uses checkbox as a selection? This sample here exports single row https://datatables.net/extensions/buttons/examples/print/select.html
but is it possible using checkboxes for multi-selection?

            elementID.dataTable({
                select: true,
                dom: 'lBfrtip',
                buttons: [
                    {
                        extend: 'print',
                        text: 'Print Selected',
                        exportOptions: {
                            modifier: {
                                selected: true
                            }
                        },
                    },
                ],
            });

Thanks,

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.