iframe¶
-
class
webix.ui.
iframe
(data)¶ Arguments: - data (object) – A configuration object
Iframe view.
References¶
- views
view()
.- helpers
protoUI()
.- mixins
EventSystem()
.
External references¶
Code¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | webix.protoUI({
name:"iframe",
$init:function(config){
this._dataobj = this._contentobj;
this._contentobj.innerHTML = "<iframe style='width:100%; height:100%' frameborder='0' onload='var t = $$(this.parentNode.getAttribute(\"view_id\")); if (t) t.callEvent(\"onAfterLoad\",[]);' src='about:blank'></iframe>";
},
load:function(value){
this.src_setter(value);
},
src_setter:function(value){
this.getIframe().src = value;
this.callEvent("onBeforeLoad",[]);
return value;
},
getIframe:function(){
return this._contentobj.getElementsByTagName("iframe")[0];
},
getWindow:function(){
return this.getIframe().contentWindow;
}
}, webix.ui.view, webix.EventSystem);
|