eike-welk / clair

Collect prices on E-Commerce sites, and display them in graphical form.
GNU General Public License v3.0
0 stars 0 forks source link

Sort Tables by Clicking on Table Header. #77

Open eike-welk opened 7 years ago

eike-welk commented 7 years ago

The task is fairly simple because Angular has an orderBy filter. But it involves a lot of mostly repetitive code.

There are several examples and projects. Look at:

A nice introduction, shows that the task is simple, but involves writing much repetitive code. https://scotch.io/tutorials/sort-and-filter-a-table-using-angular

A sorting helper that does the repeating work. https://github.com/mattiash/angular-tablesort

A grid that probably works for Clair's use case. http://ng-table.com/#/

A sophisticated grid view for tabular data. Can maybe be adapted to Clair's use case. http://ui-grid.info/