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;
},
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;
},