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

leading zeros #20

Closed
campatsky opened this issue Mar 13, 2017 · 1 comment
Closed

leading zeros #20

campatsky opened this issue Mar 13, 2017 · 1 comment

Comments

@campatsky
Copy link

I have an id field and many of the ids lead with one or more zeros. when i import the csv to excel, these get cut off. normally i would wrap the field in double quotes or a leading single quote to indicate it is a text type. but your nifty exporter handles these special characters differently. how would i make it so my field could retain the leading zeros?

@kaue
Copy link
Owner

kaue commented Mar 20, 2017

Try using the handle functions, can you share a sample of your json data?

var options = {
    handleNumber: function(number, name){
        return number.toString();
    }
};

@kaue kaue closed this as completed Jun 2, 2017
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