ember-data-power-select
v1.1.0
Published
ember-power-select extended to user ember-data
Downloads
3
Maintainers
Readme
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 withstore.query()
params
(optional) - additional query params to send in each requestqueryKey
(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}}