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

How to change the csv delimiter #351

Closed
santocch opened this issue Apr 24, 2022 · 2 comments
Closed

How to change the csv delimiter #351

santocch opened this issue Apr 24, 2022 · 2 comments

Comments

@santocch
Copy link

Hello,

I tried to find a simple way to change the character used as csv delimiter but I didn't find any option to do it... it would be great to have this option: in my country (Italy) the standard is to use the semicolon (see wikipedia: Semicolons are often used instead of commas in many European in order to use the comma as the decimal separator and, possibly, the period as a decimal grouping character.)

The dirty trick to solve this problem is simple (change the character in the hard coded csvSeparator variable in tableExport.min.js) but that's not right way to do things...

Thanks

@hhurz
Copy link
Owner

hhurz commented Apr 24, 2022

Use the csvSeparator option:

$('#tableID').tableExport({type:'csv', csvSeparator: ';'});

@santocch
Copy link
Author

Thanks... it works but I still have a problem to use it with https://github.com/wenzhixin/bootstrap-table so I close this one and continue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants