Export to Excel XLSX. Does work, but does not export all fields yet correctly. In Progress.

Thanks to gameendman, alfredgu and xet7 !

Related #3173
This commit is contained in:
Lauri Ojansivu 2021-01-19 14:22:17 +02:00
parent 815b32c9b6
commit 855151a8d1
8 changed files with 1009 additions and 12 deletions

View file

@ -435,6 +435,23 @@ BlazeComponent.extendComponent({
};
return FlowRouter.path('/api/boards/:boardId/export', params, queryParams);
},
exportUrlExcel() {
const params = {
boardId: Session.get('currentBoard'),
};
const queryParams = {
authToken: Accounts._storedLoginToken(),
};
return FlowRouter.path(
'/api/boards/:boardId/exportExcel',
params,
queryParams,
);
},
exportFilenameExcel() {
const boardId = Session.get('currentBoard');
return `export-board-excel-${boardId}.xlsx`;
},
exportCsvUrl() {
const params = {
boardId: Session.get('currentBoard'),