Skip to content

Instantly share code, notes, and snippets.

@max
Last active August 29, 2015 14:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save max/020c75c1ec34cd3520d4 to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export default Ember.Component.extend(Ember.SortableMixin, {
sortProperties: ['label'],
sortAscending: true,
filterTerm: '',
filterProperty: 'label',
filteredItems: function() {
var items = this.get('arrangedContent');
// filter items
}.property()
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment