-
10 Aug 2012 1:37 AM #1
Unanswered: Animating the position of an Ext.Tab.Panel
Unanswered: Animating the position of an Ext.Tab.Panel
Hi everyone,
It is a requirement for a project I am working on using Sencha Touch 2 that the Ext.Tab.Panel we have sitting on the left hand side of the screen is moved and animated to the right hand side of the screen as a Panel is rendered into view.
I'm wondering has anyone succesfuly put something like this together and wether it is supported. I'd like to be able to cleanly implement something like this.
Thanks,
Matt
-
17 Aug 2012 11:21 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
- Answers
- 3157
The whole tab panel or just the tab bar is on the left and you want to animate it to the right?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
20 Aug 2012 2:38 AM #3
Hey,
I'm currently using the Tab panel's setTabBarPosition() function to move the tab bar from left to right and vice versa as the code below shows:
This code is sitting inside the Main.js controller of the app.Code:mainNavChange: function(container, newvalue, oldvalue, options){ switch(newvalue.xtype){ case 'playerspanel':{ this.getMain().setTabBarPosition('right'); break; } case 'carspanel':{ this.getMain().setTabBarPosition('right'); break; } case 'infopanel': { this.getMain().setTabBarPosition('right'); console.log('Setings panel hit!'); break; } default:{ this.getMain().setTabBarPosition('left'); break; } } },
Thanks,
Matt


Reply With Quote