Externals

Events


accepted

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

declined

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

didRender


destroyed

Triggered when presenter destroyed. You may subscribe on this event to make additional operations.

Type: module:ember-dialog/components/presenter
Example
export default Ember.Component.extend({

  dialog: Ember.inject.service(),

  didRender() {
    this.get("dialog").on("created", { className } => {
      this.$().addClass("__freeze-content");
      className && this.$().addClass(className);
    });
    this.get("dialog").on("destroyed", { className } => {
      this.$().removeClass("__freeze-content");
      className && this.$().removeClass(className);
    });
  }

});

created

Triggered when presenter instance created. May be used to control presenters outside the class.

Type: module:ember-dialog/components/presenter
Example
export default Ember.Component.extend({

  dialog: Ember.inject.service(),

  didRender() {
    this.get("dialog").on("created", { className } => {
      this.$().addClass("__freeze-content");
      className && this.$().addClass(className);
    });
    this.get("dialog").on("destroyed", { className } => {
      this.$().removeClass("__freeze-content");
      className && this.$().removeClass(className);
    });
  }

});