This addon is deprecated. TL;DR: You can use ember-search-helper
instead. Slightly longer version: users quickly encountered issues when this addon was so prescriptive about the input component used. I've re-written the functionality as a helper that's hopefully a bit more flexible for your project.
The searchable-collection
component offers simple search functionality with a minimal UI.
NOTE: the searchable-collection
component uses contextual components, and requires Ember 2.3 or higher.
import Ember from 'ember';
export default Ember.Component.extend({
fruits: Ember.A(['apples', 'oranges', 'bananas']);
});
For more complex collection members, we're able to define which properties are queryable using the searchableProperties
property:
import Ember from 'ember';
export default Ember.Component.extend({
fruits: Ember.A([{
name: 'apples',
opinion: 'good'
}, {
name: 'oranges',
opinion: 'awesome'
}, {
name: 'bananas',
opinion: 'meh'
}]),
searchableProperties: Ember.A(['name', 'opinion'])
});
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
npm test
(Runsember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit http://ember-cli.com/.