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

Download button downloads whole CSV not filtered items #19

Open
RockE70 opened this issue Aug 25, 2016 · 2 comments
Open

Download button downloads whole CSV not filtered items #19

RockE70 opened this issue Aug 25, 2016 · 2 comments

Comments

@RockE70
Copy link

RockE70 commented Aug 25, 2016

Hi There

Great project but how would I set it up so that when someone presses the download button it only downloads the data filtered to a CSV file?

<SCRIPT>
      init_table({
        csv_path: 'data/Acronyms.csv', 
        element: 'table-container', 
        allow_download: true,
        csv_options: {separator: ',', delimiter: '"'},
        datatables_options: {"paging": true}
      });
    </SCRIPT>

Cheers

@RockE70 RockE70 changed the title Allow download downloads whole CSV not filtered items Download button downloads whole CSV not filtered items Aug 25, 2016
@derekeder
Copy link
Owner

@RockE70 thanks! great idea. this project doesn't have this feature, but I would definitely welcome a pull request!

@RockE70
Copy link
Author

RockE70 commented Sep 14, 2016

Hi Derek

I'm not a developer but an end user, the ability to save a filtered list would be great for this project.

The "other" solution requires an array file or someone to insert an HTML table. Your solution is straight forward.

Perhaps someone ( a programmer) could incorporate this feature via a pull request as you suggested I do.

Cheers

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