0.2.0 • Published 5 years ago

ember-power-select-typeahead-with-create v0.2.0

Weekly downloads
13
License
MIT
Repository
github
Last release
5 years ago

ember-power-select-typeahead-with-create

Build Status

This addon combines the functionality of ember-power-select-typeahead and ember-power-select-with-create.

ember install ember-power-select-typeahead-with-create

Usage

{{#power-select-typeahead-with-create
    search=(action 'searchAsync')
    extra=(hash labelPath='name')
    options=countries
    selected=selectedCountry
    onchange=(action (mut selectedCountry))
    oncreate=(action 'createCountry') as |country|
}}
  {{country.name}}
{{/power-select-typeahead-with-create}}

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';

Compatibility

  • Ember.js v2.18 or above
  • Ember CLI v2.13 or above

License

This project is licensed under the MIT License.