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

Multiple tables on one page #9

Closed
lgromanowski opened this issue Nov 7, 2016 · 4 comments
Closed

Multiple tables on one page #9

lgromanowski opened this issue Nov 7, 2016 · 4 comments
Assignees

Comments

@lgromanowski
Copy link

Hi,
when I use this module on a page with many tables, like in Plucker example: http://plnkr.co/a4eIbNK0Sg4CZAjrUoFi

Only last export link will create a file with correct data - all other will have data from the last table.

Is there any workaround or maybe quick fix for this issue?

@MFava91
Copy link

MFava91 commented Dec 12, 2016

Hi,
@lgromanowski you only need to change the CSV's id, like this:

<a class="btn" title="Export Table" ng-click="csvAnother.generate()" ng-href="{{ csvAnother.link() }}" download="myTable2.txt">
        <i class="glyphicon glyphicon-new-window"></i> Export
      </a>
<table class="table table-bordered" export-csv="csvAnother" 
      separator=";" export-csv-ignore="ignore">

Plunker example working: http://plnkr.co/edit/5m7TDS3pPOssVBVvLb8m?p=preview

@arunkutty arunkutty self-assigned this Dec 14, 2016
@floydpink
Copy link
Member

@lgromanowski - can you please check and confirm if the suggestion from @MFava91 can be considered the resolution for this issue?

Thank you, @MFava91 !

@lgromanowski
Copy link
Author

Hi,
I can confirm that above plunker's code can be considered as a solution for this issue (could you please add information about it to the readme?). Thank you @MFava91 and @floydpink :)

@floydpink
Copy link
Member

could you please add information about it to the readme?

👍 Done!

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

4 participants