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

set delimiter via Reactable.downloadDataCSV #293

Closed
nick-youngblut opened this issue Nov 21, 2022 · 1 comment
Closed

set delimiter via Reactable.downloadDataCSV #293

nick-youngblut opened this issue Nov 21, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@nick-youngblut
Copy link

The CSV file format cause problems in many countries, since semi-colon is often used instead of comma. So, it would be very helpful to have the option of setting the delimiter for Reactable.downloadDataCSV so that one can export as TSV. For example: Reactable.downloadDataCSV('cars-table', 'cars93.csv', sep='\t')

@glin
Copy link
Owner

glin commented Nov 27, 2022

There have been a couple related feature requests (#239), so I've now added this plus a few more CSV options to the development version:

  • Reactable.downloadDataCSV() in the JavaScript API now supports an additional options argument to change the field or decimal separator, include specific columns, and exclude column headers. (#239, #293)
  • New Reactable.getDataCSV() method in the JavaScript API to get the table data as a CSV string.

You can change the separator using the options argument like:

Reactable.downloadDataCSV('cars-table', 'cars93.csv', { sep: '\t' })

@glin glin closed this as completed Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants