PDA

View Full Version : Adding contentEl to contained component of borderlayout container with designer



uxdpr
21 May 2010, 3:49 AM
Hi

How to adding contentEl to contained component(panel,container or other) of borderlayout container with designer. Any suggestion on this or options to get similar result.

Cheers

uxdpr
21 May 2010, 5:04 AM
layoutHeader is defined by autoref

MyViewport = Ext.extend(MyViewportUi, {
initComponent: function() {
MyViewport.superclass.initComponent.call(this);
this.layoutHeader.on('render', this.onLayoutHeaderRender, this);
},
onLayoutHeaderRender:function(cm){
Ext.apply(cm,{contentEl:'my-div'});
}
});

cheers