Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Sortable table using ember composable helper

$
0
0

@danchann wrote:

Can anyone tell me if it’s possible to make the sort order dynamic in ember-composable-helpers sort-by? I’m trying to make the table sortable on the action of the user. I’ve tried various ways but still couldn’t get it to work. Thanks

{{#each (sort-by "age:desc" users) as |user|}}
    {{user.firstName}} {{user.lastName}} ({{user.age}})
{{/each}}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles