ember-addons / bootstrap-for-ember

Bootstrap for Ember.js
http://ember-addons.github.io/bootstrap-for-ember
Apache License 2.0
704 stars 103 forks source link

modal: send custom action on close #167

Closed patricklx closed 10 years ago

patricklx commented 10 years ago

I need to know when the dialog was closed, even when closed by pressing on X. I would like to be able to set the action attribute that is sent when the dialog closes. So i can do:

{{#bs-modal action="dialogClosed"}}{{/bs-modal}}

Currently i reopen the modal compontent and insert this in the close function:

if @get('action') then @sendAction()
asaf commented 10 years ago

Hey @patricklx

Can you take a look at: http://indexiatech.github.io/ember-components ?

Specifically to this answer: https://github.com/indexiatech/ember-components/issues/35

It should give you everything you need

asaf commented 10 years ago

let me know if you need any further help,

Thanks.