PDA

View Full Version : Disable tab-creation on LayoutRegion


christocracy
11-09-2006, 02:58 PM
is there no way to disable autoTabs on a LayoutRegion?

I have the need to add multiple ContentPanels to a LayoutRegion, as "blocks".

LayoutRegion::add(panel)

add : function(panel){
panel.setRegion(this);
this.panels.add(panel);
if(this.panels.getCount() == 1 && !this.config.alwaysShowTabs){
this.bodyEl.dom.appendChild(panel.getEl().dom);
this.setActivePanel(panel);
this.fireEvent('paneladded', this, panel);
return panel;
}
if(!this.tabs){
this.initTabs();
}else{
this.initPanelAsTab(panel);
}
this.tabs.activate(panel.getEl().id);
this.fireEvent('paneladded', this, panel);
return panel;
},

jack.slocum
11-09-2006, 07:29 PM
Not currently. The workaround a lot of people are using is to just hide the tabstrip element.