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

Ignore certain character in export but not the DOM #107

Open
mcsmithers opened this issue Oct 17, 2018 · 2 comments
Open

Ignore certain character in export but not the DOM #107

mcsmithers opened this issue Oct 17, 2018 · 2 comments

Comments

@mcsmithers
Copy link

Is there a special parameter we have to do to ignore specific characters when we export but not in the DOM itself? I am hoping to ignore dollar signs and percentage signs in the export so I just export the values. It would be even better if I can set the types for those specific columns to be numbers. I ran into an issue where they were processed as dates and fixed those to be processed as string, but it would be most ideal if I can tell the export to ignore the currency and percent characters on those specific columns.

@hhurz
Copy link

hhurz commented Oct 18, 2018

You could try this fork: https://github.com/hhurz/tableExport.jquery.plugin It provides more options. There are callback functions like onCellHtmlData and onCellData that should let you do what you described.

@mcsmithers
Copy link
Author

Thank you @hhurz. This looks like a splendid solution. I admit the only callbacks I have done were with things like Datatables in the past and I might need a little help on using the plugin like a more xlsx-directed example. I saw how you did the example for pdf and get a general idea, but the params are a little tricky.

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

No branches or pull requests

2 participants