Exemplo n.º 1
0
import ReturnType from 'appkit/libs/return-type';

export default ReturnType.extend({
  returnType : 'iframe',
  url        : null,
  title      : null,
  width      : null,
  height     : null,

  embedCode: function() {
    return '<iframe src="' + this.get('url') + '" width="' + this.get('width') + '" height="' + this.get('height') + '" title="' + this.get('title') + '" frameborder="0" allowfullscreen></iframe>';
  }.property('url', 'title', 'width', 'height'),

  displayReturnType: 'Embed Iframe'

});
Exemplo n.º 2
0
import ReturnType from 'appkit/libs/return-type';

export default ReturnType.extend({
  returnType : 'imageUrl',
  url        : null,
  title      : null,
  width      : null,
  height     : null,

  embedCode: function() {
    return this.get('url');
  }.property('url'),

  displayReturnType: 'Embed Image'

});
Exemplo n.º 3
0
import ReturnType from 'appkit/libs/return-type';

export default ReturnType.extend({
  returnType : 'url',
  url        : null,
  text       : null,
  title      : null,
  target     : null,

  embedCode: function() {
    return this.get('url');
  }.property('url')
});
Exemplo n.º 4
0
import ReturnType from 'appkit/libs/return-type';

export default ReturnType.extend({
  returnType   : 'file',
  url          : null,
  text         : null,
  content_type : null,

  embedCode: function() {
    this.get('url');
  }.property('url')
});