关于EXT的render的问题,请教ext高手!

暴龙神 暴龙神 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

如何使已经new过的panel重新刷新、构造??

代码如下所示:当我用getCmp获取到fileStampPanel 的对象后,改变这个对象的属性, this.stampState=stampState;
this.stampUserName=stampUserName;
this.imageName 值改变后,我打算让panel重新生成一次,注意不是重新new,好刷新panel达到我想要的目的,但是panel的render等方法都不好用,有什么办法么???




JDAN.FactureManage.fileStampPanel = function(stampState,stampUserName){

//默认属性
this.stampState=stampState;
this.stampUserName=stampUserName;
this.imageName = this.stampState==true?'stampbgimageGreen.gif':'stampbgimage.gif';

JDAN.FactureManage.fileStampPanel.superclass.constructor.call(this, {
id:'fileStampPanel',
title : '签章信息',
height : 120,
iconCls : 'icn2Mam',
bodyStyle : 'background-image:url(../FactureManage/Images/'+this.imageName+');line-height:60px;',// 加背景图片并使文字居中
html : '<center><font size=6 color=white style="FONT-FAMILY: 隶书">'
+ this.stampUserName + '</font></center>',
tbar : [{
text : '签章',
tooltip : '文件确认签章',
scope : this,
iconCls : 'icnRefresh',
handler : this.onBtnStamp
}]
})
};
Ext.extend(JDAN.FactureManage.fileStampPanel, Ext.Panel, {
onBtnStamp:function(){
var stampWin = new JDAN.FactureManage.ProgramStampWin();
stampWin.show();
//Ext.MessageBox.alert('提示','对图片进行签章确认!');
}
});
...全文
评论 4
收藏 已收藏
分享
返回顶部
暴龙神
JavaScript 87,984 成员 224,681 内容