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

[RFR] Add ability to customize CSV export format #933

Merged
merged 1 commit into from
Feb 16, 2016
Merged

Conversation

fzaninotto
Copy link
Member

Customize the CSV export format (quotes, delimiter, newline). The default options object is { quotes: false, delimiter: ",", newline: "\r\n" }.

    listView.exportOptions({
        quotes: true,
        delimiter: ';'
    });

@brikou
Copy link
Contributor

brikou commented Feb 16, 2016

Very usefull, thanks!

brikou added a commit that referenced this pull request Feb 16, 2016
[RFR] Add ability to customize CSV export format
@brikou brikou merged commit abe3fc7 into master Feb 16, 2016
@brikou brikou deleted the export_options branch February 16, 2016 08:55
@Phocea
Copy link
Contributor

Phocea commented Feb 22, 2016

Great addon. Could there also be a way to customize the csv filename, for instance to add a timestamp and not just the scope.entity.name() ?

@fzaninotto
Copy link
Member Author

Good idea for an enhancement.

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

Successfully merging this pull request may close these issues.

3 participants