To add html to an EXTJS panel after it has been rendered you can use. Ext.getCmp(''the I.D of your panel'').body.update(''your HTML"); new Ext.Panel({ border: false, frame: false, width: 200, region: 'west', id: 'panel-id', bodyStyle: "background: #fff" } //and I want in another module change panel content... so use this: Ext.getCmp('panel-id').body.update('html content for example'); Example 2: { xtype: 'panel', title: 'Testing', id: 'taskpanel', html: 'testing' } //to update the panel content. For html use body.update 3 Ways to render HTML inside of a ExtJS container Ext.onReady(function() { new Ext.Panel({ renderTo: Ext.getBody(), title: '3 Ways to render HTML inside of a ExtJS container', items: [{ html: &quo
Comments
Post a Comment