Skip to content

Commit

Permalink
Merge pull request clarketm#179 from jrejaud/master
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
clarketm authored Jul 25, 2019
2 parents ec0a0e3 + 6c68e3f commit d4cf813
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,15 @@ var exportData = table.getExportData(); // useful for creating custom export but
*/
```

#### [`export2file`](https://tableexport.v3.travismclarke.com/examples/exportButtons.html)

```js
/* convert export data to a file for download */
var exportData = table.getExportData();
var xlsxData = exportData.table.xlsx; // Replace with the kind of file you want from the exportData
table.export2file(xlsxData.data, xlsxData.mimeType, xlsxData.filename, xlsxData.fileExtension, xlsxData.merges, xlsxData.RTL, xlsxData.sheetname)
```

#### [`getFileSize`](https://tableexport.v3.travismclarke.com/examples/exportButtons.html)

```js
Expand Down

0 comments on commit d4cf813

Please sign in to comment.