combine table tool and colvis
combine table tool and colvis
can i combine these two
dom : 'lBfrtip',
buttons: ['copy', 'csv', 'excel', 'pdf', 'print' ],
and
dom: 'Bfrtip',
buttons: [
{
extend: 'print',
exportOptions: {
columns: ':visible'
}
},
'colvis'
],
columnDefs: [ {
targets: 0,
visible: true
} ]
i want to write something like this so i can choose the column that i want to appear when download the data to excel or pdf
dom: 'Bfrtip',
buttons: [
{
extend: 'copy', 'csv', 'excel', 'pdf', 'print'
exportOptions: {
columns: ':visible'
}
},
'colvis'
],
columnDefs: [ {
targets: 0,
visible: true
} ]
Replies
i think this is how we write it
Yes, that looks like it should work. Are you happy with that working and you understand why it works?
Allan
yes of course, knowing that i've been working on it since two days but it's easy to understand and very nice
and thank you for your reply