PDA

View Full Version : BorderLayout - showPanel



brant
28 Oct 2006, 6:04 PM
I added the following to BorderLayout.js to activate a tab panel



showPanel : function(panelId) {
var rs = this.regions;
for(var target in rs){
if(typeof rs[target] != 'function'){
if( rs[target].getPanel(panelId) ) {
rs[target].showPanel(panelId);
}
}
}
},

jack.slocum
28 Oct 2006, 10:34 PM
Looks good to me, I've added it to the codebase. Thanks!