From cd04c12bbbf480e54c47f1f601c50de379908e13 Mon Sep 17 00:00:00 2001 From: Everett Berry Date: Sat, 14 May 2022 10:39:30 -0700 Subject: [PATCH] should fix #615 and #554, also addresses closed issues #274, #353, #385, #426, #529, and #543 --- www/default.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/www/default.js b/www/default.js index 3cfc9c61..7cea1b3c 100644 --- a/www/default.js +++ b/www/default.js @@ -135,8 +135,16 @@ 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