我在extjs4中工作。我的窗口为=
addComment : function(btn) {
var me = this;
var reviewWindow = Ext.create('Ext.window.Window', {
bodyPadding: '0 0 0 15px',
cls: 'requestWindowCls',
style: {
borderColor: 'white'
},
width: 575,
header : true,
id: 'addcomment',
buttonAlign: 'right',
html : 'Add Comment',...
我想在条件下更新窗口的html,并想把html放在标题中,标题将由文本和一些图标组成。那么如何在extjs4 中执行此操作
对于更新窗口内容,可以使用reviewWindow.update('HTML content');
为了更新窗口的标题内容,您可以使用reviewWindow.getHeader().update('HTML content');