-
27 Jun 2010 10:26 PM #1
Horizontally scrollable bottom tabs
Horizontally scrollable bottom tabs
I slightly modified the kitchen sink demo by appending a bunch of cards so I'd have enough to go off the screen, and then adding a property to the TabPanel, scroll: 'horizontal'
According to the documentation it was my understanding this would allow me to scroll the tabs if they overflowed off the viewable area. However this is not the case (btw, sortable worked perfectly). How do I implement scrolling tabs in the bottom tabs example after I add additional tabs to it?
Also, there is the following property in the tabpanel:
defaults: {
scroll: 'vertical',
},
What's with the extra comma, and what is this property meant to do on this page?
-
28 Jun 2010 12:44 PM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Haarlem, Netherlands
- Posts
- 1,235
- Vote Rating
- 5
Try to use this in the tabpanel config
Code:tabBar: { scroll: 'horizontal' }
-
28 Jun 2010 1:34 PM #3
Worked, thanks. Anyone up for answering part 2?
There is the following property in the tabpanel of the kitchensink bottomtabs example:
defaults: {
scroll: 'vertical',
},
What's with the extra comma, and what is this property meant to do on this page?
-
28 Jun 2010 1:47 PM #4Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Haarlem, Netherlands
- Posts
- 1,235
- Vote Rating
- 5
The extra comma is a mistake. The defaults configuration option allows you to set defaults for each item inside that container. In this case we make each item inside the tabpanel vertically scrollable.
-
28 Jun 2010 1:56 PM #5
Thanks for the help, first day with extjs/sencha (been off in jquery land), for some reason I thought defaults applied to the buttons themselves rather than the display area... I was wondering how vertically scrollable buttons would work, lol!
Similar Threads
-
autoscrolling bottom tabs
By jmcneese in forum Ext 2.x: User Extensions and PluginsReplies: 0Last Post: 25 Nov 2008, 3:12 PM -
Add tabs at bottom in TabPanel
By ravi jain in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 4 Nov 2008, 11:11 PM -
Complex Layout: Splitting Tabs Horizontally
By bmspam in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 5 Feb 2008, 5:39 AM -
Tabs at the bottom? (without a layout manager)
By alanwilliamson in forum Ext 1.x: Help & DiscussionReplies: 7Last Post: 7 Dec 2006, 8:12 AM


Reply With Quote
