Skip to content

denchen/ember-power-select-typeahead

 
 

Repository files navigation

Ember-power-select-typeahead

Naive implementation of a typeahead component on top of ember-power-select.

Demo

Usage

With simple strings:

{{#power-select-typeahead search=(action 'searchAsync') selected=selected onchange=(action (mut selected)) as |number|}}
  {{number}}
{{/power-select-typeahead}}

With complex objects:

{{#power-select-typeahead search=(action 'searchAsync') selected=selected extra=(hash labelPath="name") onchange=(action (mut selected)) as |user|}}
  {{user.name}}
{{/power-select-typeahead}}

Styles

In your app's stylesheet, you must import the built-in styles in this order:

/*
your custom variables goes here
*/

/*if using a theme
@import 'ember-power-select/themes/material';
*/

@import 'power-select';
@import 'ember-power-select-typeahead';

About

Typeahead component built on top of ember-power-select

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 66.6%
  • HTML 28.4%
  • CSS 5.0%