Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that only the visible columns are exported. #605

Closed
wants to merge 3 commits into from

Conversation

shammamah-zz
Copy link
Contributor

Closes #553.

@chriddyp chriddyp temporarily deployed to dash-table-review-pr-605 September 30, 2019 16:12 Inactive
@shammamah-zz shammamah-zz temporarily deployed to dash-table-review-pr-605 September 30, 2019 16:18 Inactive
const wb = createWorkbook(ws);
if (export_format === ExportFormat.Xlsx) {
XLSX.writeFile(wb, 'Data.xlsx', {bookType: 'xlsx', type: 'buffer'});
XLSX.writeFile(wb, 'Data.xlsx', { bookType: 'xlsx', type: 'buffer' });
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These diffs come from the linter -- I can remove them if necessary.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR is redundant with what's been done here #592. See https://github.com/plotly/dash-table/blame/dev/src/dash-table/components/Export/utils.tsx#L59 for column filtering.

@shammamah-zz shammamah-zz deleted the fix-export-columns branch September 30, 2019 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export option - data columns are in a different order to the header names
3 participants