esvit / ng-table

Simple table with sorting and filtering on AngularJS
http://esvit.github.io/ng-table
BSD 3-Clause "New" or "Revised" License
2.77k stars 851 forks source link

[PLUGIN] Column visibility #729

Open nucle opened 8 years ago

nucle commented 8 years ago

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 commented 8 years ago

Hey, good stuff.

nucle commented 8 years ago

Thank you!

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

ccrowhurstram commented 8 years ago

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 commented 8 years ago

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

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

Thank you.

ccrowhurstram commented 8 years ago

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 commented 8 years ago

Thank you, i will try it.