Results 1 to 3 of 3

Thread: Animating the position of an Ext.Tab.Panel

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    82
    Answers
    4
    Vote Rating
    3
      0  

    Default 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

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Answers
    3884
    Vote Rating
    1297
      0  

    Default

    The whole tab panel or just the tab bar is on the left and you want to animate it to the right?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    82
    Answers
    4
    Vote Rating
    3
      0  

    Default

    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:

    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;    
                }
            }
        },
    This code is sitting inside the Main.js controller of the app.

    Thanks,

    Matt

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •