Merge pull request #2114 from SergioCrisostomo/improve-csv

Improve export to CSV functionality
This commit is contained in:
Aresn 2017-10-19 22:47:33 -05:00 committed by GitHub
commit cbe5ccfc8a
5 changed files with 449 additions and 63 deletions

View file

@ -714,8 +714,9 @@
let noHeader = false;
if ('noHeader' in params) noHeader = params.noHeader;
const data = Csv(columns, datas, ',', noHeader);
ExportCsv.download(params.filename, data);
const data = Csv(columns, datas, params, noHeader);
if (params.callback) params.callback(data);
else ExportCsv.download(params.filename, data);
}
},
created () {