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 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,556
    Answers
    3931
    Vote Rating
    1272
      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! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  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
  •