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

Exporting specific columns #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

haukurst
Copy link

In a project I am working on I had a ng-table where the user could choose which column he wanted to see dynamically, much like this example: http://bazalt-cms.com/ng-table/example/20
When I wanted to export the data to csv however it would take the whole table instead of the columns I had selected, so I added a little code that would check if any of the headers in the table had a class called 'no-export', which indicated that those columns should not be exported. So the data to be exported would only be the columns he had selected.
It works for any number of columns and I hope it can be of any help.

@andrewboni
Copy link

+1 on this. Still not yet merged to master?

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.

2 participants