ember-power-select-blockless

0.5.0 • Public • Published

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.

Package Sidebar

Install

npm i ember-power-select-blockless

Weekly Downloads

1,234

Version

0.5.0

License

MIT

Unpacked Size

227 kB

Total Files

13

Last publish

Collaborators

  • cibernox