7 Nov 2011 3:23 AM #1
enableTabScroll: hide scroll buttons
In a TabPanel, when the number of tabs is five or more, I set enableTabScroll = true. When the number of tabs is minor than five, I set enableTabScroll = false, but the scroll buttons are not hidden. What's the way to hide these buttons?
7 Nov 2011 9:02 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
I don't think there is a way to dynamically hide/show the scroll buttons minus going in and doing it manually.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
8 Nov 2011 1:00 AM #3
Initially, the scroll buttons are hidden by config:
tabPanel.enableTabScroll = true
tabPanel.enableTabScroll = false