如何在条件下更新 extjs4 窗口的 html 文本



我在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');

最新更新