1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    49
    Vote Rating
    0
    brant is on a distinguished road

      0  

    Default BorderLayout - showPanel

    BorderLayout - showPanel


    I added the following to BorderLayout.js to activate a tab panel

    Code:
    	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);
    				}
    			}
    		}
    	},

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    Looks good to me, I've added it to the codebase. Thanks!

Similar Threads

  1. modal dialog and borderlayout inside a borderlayout tab!!!
    By vtswingkid in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 22 Feb 2007, 4:40 PM
  2. How to use showPanel with BorderLayout
    By Bobafart in forum Ext 1.x: Help & Discussion
    Replies: 13
    Last Post: 18 Feb 2007, 9:49 AM
  3. hidePanel / showPanel Tab missplace
    By rizakoyt in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 12 Dec 2006, 2:24 PM

Thread Participants: 1