Export options - row selector
Export options - row selector
user3770935
Posts: 10Questions: 4Answers: 0
As shown in the example in the link at the bottom, exportOptions which is used to only export and print the selected row(s).
Can we use this when using an excel button? I have tried:
{
extend: 'excel',
text: 'Download Excel',
exportOptions: {
modifier: {
selected: true
}
}
}
Which does not work. The documentation I am trying to apply to excel is below:
https://datatables.net/extensions/buttons/examples/print/select.html
extend: 'print',
text: 'Print selected',
exportOptions: {
modifier: {
selected: true
}
}
}
This discussion has been closed.
Answers
Please ignore me, my code was bad. This is entirely possible:
https://jsfiddle.net/L1LLjxL4/