o2oa api: x-游戏厅捕鱼达人

source

mwf.xdesktop.requireapp("process.xform", "$module", null, false);
/** @class iframe html iframe。
 * @o2cn iframe
 * @example
 * //可以在脚本中获取该组件
 * //方法1:
 * var iframe = this.form.get("name"); //获取组件
 * //方法2
 * var iframe = this.target; //在组件事件脚本中获取
 * @extends mwf.xapplication.process.xform.$module
 * @o2category formcomponents
 * @o2range {process|cms|portal}
 * @hideconstructor
 */
mwf.xapplication.process.xform.iframe = mwf.appiframe =  new class({
	extends: mwf.app$module,
	_loaduserinterface: function(){
		this.node.empty();
        var src = this.json.src;
        if (this.json.valuetype=="script"){
            src = this.form.macro.exec(((this.json.script) ? this.json.script.code : ""), this);
        }
		this.iframe = new element("iframe", {
			"src": src
		}).inject(this.node, "after");
		
		this.node.destroy();
		this.node = this.iframe.setstyles({
			"width": "100%",
			"border": "0"
		});
	}
}); 
网站地图