feat: add dashboard page full xlsx export (#24287)

Co-authored-by: Vitali Logvin <vitali.logvin@noogadev.com>
This commit is contained in:
Vitali Logvin
2023-06-15 14:43:34 +03:00
committed by GitHub
parent d2b0b8eac5
commit fa82ee1947
6 changed files with 85 additions and 14 deletions

View File

@@ -140,6 +140,7 @@ class Chart extends React.Component {
this.exportCSV = this.exportCSV.bind(this);
this.exportFullCSV = this.exportFullCSV.bind(this);
this.exportXLSX = this.exportXLSX.bind(this);
this.exportFullXLSX = this.exportFullXLSX.bind(this);
this.forceRefresh = this.forceRefresh.bind(this);
this.resize = this.resize.bind(this);
this.setDescriptionRef = this.setDescriptionRef.bind(this);
@@ -337,6 +338,10 @@ class Chart extends React.Component {
this.exportTable('xlsx', false);
}
exportFullXLSX() {
this.exportTable('xlsx', true);
}
exportTable(format, isFullCSV) {
const logAction =
format === 'csv'
@@ -451,6 +456,7 @@ class Chart extends React.Component {
exportCSV={this.exportCSV}
exportXLSX={this.exportXLSX}
exportFullCSV={this.exportFullCSV}
exportFullXLSX={this.exportFullXLSX}
updateSliceName={updateSliceName}
sliceName={sliceName}
supersetCanExplore={supersetCanExplore}