wejsv2old-plugin-cdp-profile
Version:
We.js plugin wejsv2old-plugin-cdp-profile
19 lines (18 loc) • 712 B
JavaScript
App.WeIframeActivitesComponent = Ember.Component.extend({
tagName: 'iframe',
classNames: ['we-iframe-activities'],
attributeBindings: ['src', 'width', 'height', 'scrolling', 'id', 'onload'],
id: 'we-iframe-activities',
width: '100%',
height: '100%',
scrolling: 'no',
baseSrc: 'https://cursos.atencaobasica.org.br/user-activities-iframe/',
src: function () {
return this.get('baseSrc') + this.get('drupalId') + '?activityIframeParent=true&disableMessenger=true'
}.property('drupalId'),
init: function (){
this._super.apply(this, arguments);
// Test for truthiness
Ember.assert('`drupalId` is a required property to initialize this component!', this.get('drupalId'));
}
});