Typeahead component built on top of ember-power-select that leverages Ember Data
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
addon/components
app/components
config
docs
tests
.editorconfig
.ember-cli
.eslintrc.js
.gitignore
.npmignore
.travis.yml
.watchmanconfig
LICENSE.md
README.md
_config.yml
ember-cli-build.js
index.js
package-lock.json
package.json
testem.js

README.md

npm version

Ember Data Power Select

Integrate into your Ember Data app without having to implement a store.query function in each route.

See DEMO

Installation

ember install ember-data-power-select

Usage

See ember-power-select's API. Adds the following parameters :

  • modelName - model to query when searching with store.query()
  • params(optional) - additional query params to send in each request
  • queryKey(default: 'search') - this is where the search value is send=t in each request
  {{#data-power-select
    modelName='user'
    params=(hash limit=10)
    queryKey='email'
    params=(hash results=10)
    onchange=(action (mut selected))
    selected=selected
    placeholder="Search Users emails..."
    as |user|
  }}
    {{user.email}}
  {{/data-power-select}}