13 lines
275 B
JavaScript
13 lines
275 B
JavaScript
var bricks = window.bricks || {};
|
|
bricks.Iframe = class extends bricks.Layout {
|
|
constructor(opts){
|
|
super(opts);
|
|
this.dom_element.src = opts.url;
|
|
}
|
|
create(){
|
|
this.dom_element = document.createElement('iframe');
|
|
}
|
|
}
|
|
|
|
bricks.Factory.register('Iframe', bricks.Iframe);
|