APIs

Show:
/**
  @module ember-flexberry
*/

import Mixin from '@ember/object/mixin';

/**
  Mixin for components which need to be flexberry-file compatible.

  @class FlexberryFileCompatibleComponentMixin
  @extends <a href="https://www.emberjs.com/api/ember/release/classes/Mixin">Mixin</a>
*/
export default Mixin.create({
  actions: {
    /**
      Handles {{#crossLink "FlexberryFileComponent"}}flexberry-file{{/crossLink}} 'viewLoadedImage' action,
      bubbles it to current controller.

      @method actions.flexberryFileViewImageAction
      @public
    */
    flexberryFileViewImageAction: function() {
      this.get('currentController').send('flexberryFileViewImageAction', ...arguments);
    }
  }
});