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 #6107

Closed
santocch opened this issue Apr 24, 2022 · 2 comments · Fixed by #6112
Closed

How to change the csv delimiter #6107

santocch opened this issue Apr 24, 2022 · 2 comments · Fixed by #6112
Assignees
Labels
Bug Issues which are marked as Bug export Issues for the export extension. has PR Issues that has been fixed with a PR.

Comments

@santocch
Copy link

Description

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

@santocch santocch reopened this Apr 24, 2022
@santocch
Copy link
Author

I asked this question in hhurz/tableExport.jquery.plugin#351 and I got a solution which works as code but using the same solution as a table attribute doesn't look to work:

data-export-options='{type:"csv", csvSeparator: ";"}'

so I'm back here... is this the correct use of the data-export-options attribute? And if this is correct why it doesn't work?

@UtechtDustin
Copy link
Collaborator

It seems it's currently don't work with the data attribute.
Via JS it works fine: https://live.bootstrap-table.com/code/UtechtDustin/11321

@UtechtDustin UtechtDustin added export Issues for the export extension. Bug Issues which are marked as Bug labels Apr 25, 2022
@wenzhixin wenzhixin self-assigned this Apr 25, 2022
@wenzhixin wenzhixin added the has PR Issues that has been fixed with a PR. label Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues which are marked as Bug export Issues for the export extension. has PR Issues that has been fixed with a PR.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants