Results 1 to 3 of 3

Thread: Pop the navigationView to root on tab changed

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    18
    Answers
    3
    Vote Rating
    0
      0  

    Default Answered: Pop the navigationView to root on tab changed

    I have 5 tabs(in my barpanel), and inside some of this tabs I have a navigation view.I would like that when I selected a tab, automatically the navigation view is on the root windows.Someone has a clue ?

  2. On activate event you can use reset() on the navigation view.

  3. #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

    On activate event you can use reset() on the navigation view.
    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

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    18
    Answers
    3
    Vote Rating
    0
      0  

    Default

    Yes it works well Thanks so much, I was looking way to far haha

    here the working code

    Code:
    listeners:{
            activate: {
                fn: function() {
                    this.reset();
                },
                element: 'element'
            }
        }

Posting Permissions

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