ekokotov / object-table

Angular directive to easy create dynamic tables from source or URL with sorting, filtering and pagination. Smart templates and good perfomance
BSD 3-Clause "New" or "Revised" License
171 stars 52 forks source link

Put ngClick on all <th> in table header #29

Closed Parthvora closed 8 years ago

Parthvora commented 8 years ago

Hello,

I want to Put ngClick on all the < th > tags in table header, but with below syntax how that is going to be possible?

< table object-table from-url="http://some-url.com/getData" data="exportDataVariable" display="2" headers="Name, Age" fields="name, age" sorting="false" editable="true">

Actually what I want to do is to put my custom server side sorting there instead of plugin's built in client side sorting.

This plugin is really good when there is limited data in table, but however in real life big project where there is millions of data to display in table, its not good to use it because it gets whole data in a single shot and based on that it gives sorting.

Any help would be appreciated. Thanks

ekokotov commented 8 years ago

It's possible to use custom header/row pattern. Look please on this example: http://ekokotov.github.io/object-table/samples.html#/custom_rows_headers

Parthvora commented 8 years ago

Thanks @ekokotov , yes using custom header, we can get ngClick working, but I also want draggable columns which is not working with custom headers. So I can get either of one thing. So is there anyway I can get both the things together?

ekokotov commented 8 years ago

http://ekokotov.github.io/object-table/samples.html#/draggable_headers

If you are using custom templates:

add allow-drag attribute to draggable header суббота, 23 января 2016 г. пользователь Parthvora написал:

Thanks @ekokotov https://github.com/ekokotov , yes using custom header, we can get ngClick working, but I also want draggable columns which is not working with custom headers. So I can get either of one thing. So is there anyway I can get both the things together?

— Reply to this email directly or view it on GitHub https://github.com/ekokotov/object-table/issues/29#issuecomment-174135011 .