Skip to content

Commit

Permalink
Merge pull request #627 from vantage-sh/improve-csv-export
Browse files Browse the repository at this point in the history
CSV export should match what's displayed in all cases. Should fix #615 and #554 and other issues.
  • Loading branch information
EverettBerry authored May 16, 2022
2 parents a24a275 + d8df240 commit 2ae8332
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions www/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,17 @@ function init_data_table() {
stateSave: true,
stateDuration: 0,

// Allow export to CSV
buttons: ['csv'],
// Allow export to CSV: only visible columns and only current filtered data
buttons: [
{
extend: 'csv',
text: 'CSV',
exportOptions: {
modifier: {search: 'applied'},
columns: ':visible',
},
},
],
});

g_data_table
Expand Down

0 comments on commit 2ae8332

Please sign in to comment.