Module: ember-dialog/components/presenter

Extends

  • Ember.Component

Members


<inner> resolve :String

Type:
  • String

<inner> reject :String

Type:
  • String

<inner> substrate :Boolean

Type:
  • Boolean

<inner> acceptHandler :String

Name of the action that evaluated on contextObject when user accepting dialog window.

Type:
  • String

<inner> declineHandler :String

Name of the action that evaluated on contextObject when user declining dialog window.

Type:
  • String

<inner> contextObject :Object

Dialog service puts given context into this property. It is available from a dialog template.

Type:
  • Object
Examples

For example you may pass a context on creation the dialog and then get it from a template.

export default Ember.Controller({
  show() {
    this.get("dialog").show("dialog/alert", "message-template", { foo: 123 });
  }
});

Context that was passed on creation of the dialog is available in the template as `contextObject`.

<div>Foo: {{contextObject.foo}}</div>

Methods


<inner> accept()

Fires:

<protected, inner> _accept()


<inner> decline()

Fires:

<protected, inner> _decline()

Events


accepted

Type: module:ember-dialog/components/presenter
Listeners of This Event:

declined

Type: module:ember-dialog/components/presenter
Listeners of This Event:

didRender