Skip to content

Instantly share code, notes, and snippets.

@abhilashlr
Created April 18, 2017 17:43
Show Gist options
  • Save abhilashlr/cd70ac43c2f408c18dce05d6b1575f16 to your computer and use it in GitHub Desktop.
Save abhilashlr/cd70ac43c2f408c18dce05d6b1575f16 to your computer and use it in GitHub Desktop.
EPS-with-create-issue
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
selected: 'a',
options: ['a', 'b'],
actions: {
create() {
console.log('here');
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{#power-select-with-create
renderInPlace=true
allowClear=true
disabled=disabled
selected=selected
options=options
oncreate=(action 'create')
as |option|}}
{{option}}
{{/power-select-with-create}}
<br>
<br>
{
"version": "0.12.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.12.0",
"ember-template-compiler": "2.12.0",
"ember-testing": "2.12.0"
},
"addons": {
"ember-data": "2.12.1",
"ember-power-select": "1.7.0",
"ember-power-select-with-create": "0.4.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment