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

[PLUGIN] Column visibility #729

Open
nucle opened this issue Oct 18, 2015 · 6 comments
Open

[PLUGIN] Column visibility #729

nucle opened this issue Oct 18, 2015 · 6 comments

Comments

@nucle
Copy link

nucle commented Oct 18, 2015

First of all, thank you for this great tool! In the last two weeks i decided to write some plugins for ng-table.The first plugin can handle visibility from columns in a drop down. You can find an example if u click on this link: http://nucle.github.io/examples/ng-table-plugins/colvis/complete_colvis_example.html

My github project site: https://github.com/nucle/ng-table-plugins

Image Column Visibility

@ccrowhurstram
Copy link
Contributor

Hey, good stuff.

@nucle
Copy link
Author

nucle commented Oct 22, 2015

Thank you!

How can i get the rows outside from ngTable?
I want to write an export plugin.

@ccrowhurstram
Copy link
Contributor

There's already a plugin for this: https://github.com/esvit/ng-table-export

I intend to get the original demo for this plugin added back to http://ng-table.com/. In the meantime, the original demo for this can be found here: https://github.com/esvit/ng-table/blob/master/examples-old/demo15.html

@nucle
Copy link
Author

nucle commented Oct 23, 2015

Tanks but I know of it. I want to add more functionality like:

  • pdf, xlsx, csv and print export
    Furthermore i want to export the whole table ( Export without pagination ng-table-export#8 ) and i think it would be better to get the rows directly from ngTable. Maybe over binding like the columns or a getter, so i dont have to parse the html table and do not need to manipulate the count parameter.

Do you think it would be possible to get this getter/binding?

Thank you.

@ccrowhurstram
Copy link
Contributor

There is one very easy way of getting all the rows from NgTableParams directly:

var existingDataset = tableParams.settings().dataset

BUT, that only works if the table is being assigned a dataset eg: http://ng-table.com/#/loading/demo-managed-array

@nucle
Copy link
Author

nucle commented Oct 25, 2015

Thank you, i will try it.

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