bricks/bricks/iframe.js
2024-02-26 18:22:18 +08:00

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