We certainly will want to improve that and explicitely list the columns
to export. For instance the actions and checkboxes should not be
exported, even if visible.
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
extend: 'colvis',
columns: included_ids,
text: _("Column visibility"),
+ exportOptions: {
+ columns: ':visible'
+ },
},
{
extend: 'excelHtml5',
text: _("Excel"),
+ exportOptions: {
+ columns: ':visible'
+ },
},
{
extend: 'csvHtml5',
text: _("CSV"),
+ exportOptions: {
+ columns: ':visible'
+ },
},
{
extend: 'copyHtml5',
text: _("Copy"),
+ exportOptions: {
+ columns: ':visible'
+ },
},
{
extend: 'print',
text: _("Print"),
+ exportOptions: {
+ columns: ':visible'
+ },
},
];