Blockless version of ember-power-select
Clone or download
Latest commit f172308 May 18, 2018
Permalink
Failed to load latest commit information.
addon Pass all power-select options and update packages, tests, add yarn.lock May 17, 2018
app Init multi blockless component Jul 9, 2017
config Pass all power-select options and update packages, tests, add yarn.lock May 17, 2018
tests Pass all power-select options and update packages, tests, add yarn.lock May 17, 2018
vendor Initial Commit from Ember CLI v1.13.8 Nov 4, 2015
.editorconfig Update to 2.8 family Sep 23, 2016
.ember-cli Initial Commit from Ember CLI v1.13.8 Nov 4, 2015
.eslintignore Pass all power-select options and update packages, tests, add yarn.lock May 17, 2018
.eslintrc.js Pass all power-select options and update packages, tests, add yarn.lock May 17, 2018
.gitignore Pass all power-select options and update packages, tests, add yarn.lock May 17, 2018
.npmignore Pass all power-select options and update packages, tests, add yarn.lock May 17, 2018
.travis.yml Pass all power-select options and update packages, tests, add yarn.lock May 17, 2018
.watchmanconfig Initial Commit from Ember CLI v1.13.8 Nov 4, 2015
LICENSE.md Pass all power-select options and update packages, tests, add yarn.lock May 17, 2018
README.md Pass all power-select options and update packages, tests, add yarn.lock May 17, 2018
ember-cli-build.js Pass all power-select options and update packages, tests, add yarn.lock May 17, 2018
index.js Pass all power-select options and update packages, tests, add yarn.lock May 17, 2018
package.json v0.5.0 May 18, 2018
testem.js Pass all power-select options and update packages, tests, add yarn.lock May 17, 2018
yarn.lock Update ember-power-select dependency to latest version. May 18, 2018

README.md

Build Status Code Climate Ember Observer Score

Ember-power-select-blockless

Blockless version of Ember Power Select

Installation

ember install ember-power-select-blockless

Usage

This component uses internally ember-power-select, but uses the get helper to render an specific attribute in each item of the list.

All options are the same as those in ember-power-select but with the addition of one new one, labelPath. This tells the component which attribute from options to use (to render each option of the list). That same attribute will also be the one rendered as the content of the trigger.

{{power-select-blockless options=users selected=user labelPath="name" onchange=(action (mut user))}}

Another refinement is that by default the searchField will default to the value in labelPath, so you don't need to specify it unless it's different.

When options is just an array of strings/numbers labelPath is not required.