现在的位置: 首页 > 综合 > 正文

extjs window显示在顶层

2013年10月05日 ⁄ 综合 ⁄ 共 593字 ⁄ 字号 评论关闭

最开始的样式:

完成后的样式:

下面是代码:

	var win = new top.Ext.Window({
        	title: menuReferenceObj.patientName+'--病历--'+menuReferenceObj.title,
            layout:'fit',
            height: 537,
	        width: 800,
            closeAction:'close',
            plain: true,
            modal : true,
            html : '<iframe id="ifrm" scrolling="auto" frameborder="0" width="100%"height="100%" src="/xxx/'+menuReferenceObj.patientNo+menuReferenceObj.code+'.html"></iframe>'
        });
		win.show(this);

需要在加上top就OK了,但是需要注意,有时候会报找不到top.Ext.Window

你需要在Ext的代码里面写,

InpatientViewPanel=Ext.extend(Ext.grid.GridPanel,{

constructor:function(){

InpatientViewPanel.superclass.constructor.call(this,{});

},

showWindow:function(){

//上面粘贴的代码 这样写是OK的

}

});

抱歉!评论已关闭.