vendredi 2 juin 2017

Ember 2 Sorting table data with ember-cli-filter-component

Ember v2.8

I'm using an ember addon, ember-cli-filter-component, that works really well to filter results using a keyword search. However, I'm now trying to add in the option to sort each column (Date and Location). The issue is if I use Ember.computed.sort() I am unable to use it alongside the addon. Has anyone had any luck building a table in Ember 2.8 that utilizes sort & filter functionality?

I saw a few addons that achieve this, but they also come with a bunch of other functionality (code) I don't need. All I need is to add the column sort functionality.. any help is much appreciated.

So you can get an idea of how my code is setup: http://ift.tt/2rBCqyT

I am using the filter-component inside of the the list-cmp component.




Aucun commentaire:

Enregistrer un commentaire