instructure/lti_public_resources

View on GitHub
ember-app/app/libs/return_types/iframe.js

Summary

Maintainability
A
1 hr
Test Coverage
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'

});