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' });
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' });
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') });
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') });