Skip to content
Snippets Groups Projects
Commit 2f8b210c authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Show the excel export button first, as it's the preferred method

parent 1f50714f
No related branches found
No related tags found
No related merge requests found
...@@ -97,21 +97,21 @@ class DataTableView extends LitElement { ...@@ -97,21 +97,21 @@ class DataTableView extends LitElement {
dom: (this.exportable ? '<"export-btn"B>' : '') + 'lfrtip', dom: (this.exportable ? '<"export-btn"B>' : '') + 'lfrtip',
buttons: [ buttons: [
{ {
extend: 'csvHtml5', extend: 'excelHtml5',
text: i18n.t('export-csv'), text: i18n.t('export-excel'),
title: this.exportName, title: this.exportName,
filename: this.exportName, filename: this.exportName,
className: 'button is-small', className: 'button is-small',
charset: 'UTF-8',
bom: true,
fieldSeparator: this.lang === 'en' ? ',' : ';'
}, },
{ {
extend: 'excelHtml5', extend: 'csvHtml5',
text: i18n.t('export-excel'), text: i18n.t('export-csv'),
title: this.exportName, title: this.exportName,
filename: this.exportName, filename: this.exportName,
className: 'button is-small', className: 'button is-small',
charset: 'UTF-8',
bom: true,
fieldSeparator: this.lang === 'en' ? ',' : ';'
}, },
{ {
extend: 'print', extend: 'print',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment