Exporting into PDF rows containing particular value
Exporting into PDF rows containing particular value
Hi,
I would like to add to my datatable a PDF button which export only rows that contain a specific value.
In my case I have a datatable with 4 columns and one of them contains only boolean data type.
I would like that when the PDF button is pressed it only exports rows which contain 'true' in that column.
How can I implement this kind of button?
Looking around I've found the 'oSelectorOpts' option but I can't understand how it works and if it can help me in my problem.
Thank you in advance,
Giulio
<script type="text/javascript">
$(document).ready(function () {
var table = $('#ticketsTable').DataTable({
dom: 'Bfrtip',
buttons: [{
extend: 'pdf',
text: 'PDF paid tickets'}],
responsive: true
});
});
</script>
Answers
Hi @giulgiu .
This thread should help, it's asking the same thing.
Cheers,
Colin