Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Ability to export data as csv / xlsx file #499

Merged
merged 70 commits into from
Jul 22, 2019
Merged

Ability to export data as csv / xlsx file #499

merged 70 commits into from
Jul 22, 2019

Conversation

alinastarkov
Copy link
Contributor

Closes #313

@chriddyp chriddyp temporarily deployed to dash-table-review-pr-499 July 22, 2019 14:29 Inactive
@chriddyp chriddyp temporarily deployed to dash-table-review-pr-499 July 22, 2019 14:50 Inactive
<script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.js'></script>

<!-- <script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.js'></script> -->
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove the two commented versions of React at this point.

demo/index.html Outdated
@@ -5,11 +5,15 @@
</head>
<body>
<div id='root'></div>
<script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.js'></script>
<!-- <script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react.js'></script>
Copy link
Contributor

Choose a reason for hiding this comment

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

Same

@chriddyp chriddyp temporarily deployed to dash-table-review-pr-499 July 22, 2019 14:54 Inactive
@@ -316,6 +316,8 @@ interface IDefaultProps {
css: IStylesheetRule[];
data: Data;
editable: boolean;
export_format: 'csv' | 'xlsx';
Copy link
Contributor

Choose a reason for hiding this comment

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

missing none

@chriddyp chriddyp temporarily deployed to dash-table-review-pr-499 July 22, 2019 15:00 Inactive
return wb;
}

export function createWorksheet(heading: string[][], data: any[], columnID: string[], exportHeader: string ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a Data type in tables/props.ts - sheet_add_json expects any[] but both types should be compatible as Data is resolved as (IDatumObject | any)[]

@chriddyp chriddyp temporarily deployed to dash-table-review-pr-499 July 22, 2019 18:15 Inactive
@chriddyp chriddyp temporarily deployed to dash-table-review-pr-499 July 22, 2019 18:30 Inactive
Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet left a comment

Choose a reason for hiding this comment

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

💃 Well done. Get this one out the door! :)

@alinastarkov alinastarkov merged commit 26c65f8 into master Jul 22, 2019
@alinastarkov alinastarkov deleted the ExportTable branch July 22, 2019 20:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to export data as excel or csv
3 participants