alalonde / angular-scrollable-table

A fixed header table directive for AngularJS
MIT License
68 stars 48 forks source link

Add resizable option #18

Closed alalonde closed 9 years ago

alalonde commented 10 years ago

check for attribute 'resizable' to enable resizing, otherwise disable

madanv commented 10 years ago

+1

Hi, Thanks for a clean and neat directive. I am looking for a couple of things if its possible.

  1. Should be able to use resize feature alone without sorting enabled.
  2. Is it possible to have a pagination and sorting which are tied to a custom function to load the data asynchronously from server.

Thanks again for your efforts.

-Madan

alalonde commented 10 years ago

For 2. it sounds like all you would need is a function hook that would be called when a column is sorted. This could be used to update the data array in ng-model appropriately.

madanv commented 10 years ago

Thanks for the suggestion...I was able to solve the sorting with a custom function.

Gary-Li commented 10 years ago

I think the defaultCompare function is fair enough for client side sort, so is that possible to using sortFn as the custom sort hook?