-
29 Jun 2010 7:54 AM #1
tabPanel Docked on top
tabPanel Docked on top
So I am trying to create a tab panel that is nested within another tab panel. The nested tab panel should show up at the top but still visually look like the bottom docked one. I can't seem to figure out a way to do it. When I dock the nested panel to the top it makes it look like tabs instead of the toolbar. Any way to fix this?
-
22 Jul 2010 7:04 AM #2
The below code should do it. Maybe move this to the feature request board, requesting an easier switch of the tab type. It would be nice to have an easier way of changing a top docked tabbar to have bottom-docked like tabs.
Code:Ext.setup({ onReady: function () { new Ext.TabPanel({ fullscreen: true, tabBarPosition: 'bottom', items: [ { title: 'Tab', xtype: 'tabpanel', items: [{ title: 'Tab', html: 'content'}], listeners: { activate: function (panel) { var dom = Ext.select('.x-docked-top', panel.getEl().dom).first().dom; dom.className = dom.className.replace('x-docked-top', 'x-docked-bottom'); } } }] }); }});
-
4 Aug 2011 7:17 PM #3
I tried it, it seems the 'active' event should be 'afterlayout'
I tried it, it seems the 'active' event should be 'afterlayout'
I tried it, it seems the 'active' event should be 'afterlayout'
-
1 May 2012 6:20 AM #4
Sencha Touch 2.0?
Sencha Touch 2.0?
Has anyone tried this on in Sencha Touch 2.0?
Similar Threads
-
Scroll top down for Panel like Tabpanel
By tomalex0 in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 30 Jun 2010, 11:20 PM -
How I can get a grid docked into a border region?
By mrhiggs in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 17 Sep 2008, 10:00 AM -
Bring new TabPanel to the top
By gmoney in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 24 Oct 2007, 1:05 PM -
TabPanel: tabPosition: 'top'
By jbraband in forum Ext 2.x: Help & DiscussionReplies: 11Last Post: 4 Aug 2007, 3:56 AM


Reply With Quote