1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    16
    Vote Rating
    0
    vtu is on a distinguished road

      0  

    Default Answered: How to override navigationview back button?

    Answered: How to override navigationview back button?


    Hi I have a navigation view with a button that pushes a nestedlist. I set the useToolbar config for the nestedlist to false so I wouldn't have two back buttons. When navigating through the list I would like to have it so the navigationview takes into account the view changes that happens. What I'm trying to do is have the navigation view back button go back in the list also. Thanks in advance

  2. Extend the navigation view and override the onBackButtonTap method.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Answers
    3447
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Extend the navigation view and override the onBackButtonTap method.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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.

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    16
    Vote Rating
    0
    vtu is on a distinguished road

      0  

    Default


    thanks went another route.

  5. #4
    Sencha User
    Join Date
    May 2012
    Posts
    24
    Vote Rating
    -6
    totalnotme can only hope to improve

      0  

    Default


    how to do that? Im sorry can not get it.

  6. #5
    Sencha User
    Join Date
    May 2012
    Posts
    24
    Vote Rating
    -6
    totalnotme can only hope to improve

      0  

    Default


    mitchellsimoens please guide some code please can not search for any thread teach about it.

  7. #6
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Answers
    3447
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      1  

    Default


    Code:
    Ext.define('Ux.navigation.View', {
        extend : 'Ext.navigation.View',
        xtype  : 'ux-navigationview',
    
        onButtonTap : function() {
            if (some logic) {
                //optionally you can call the Ext.navigation.View via:
                this.callParent(arguments);
            }
        }
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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.

  8. #7
    Sencha User
    Join Date
    May 2012
    Posts
    24
    Vote Rating
    -6
    totalnotme can only hope to improve

      0  

    Default


    thank you that work!!

    but can I find default logic of navigationbar and nested list toolbar. can i use that class or i have to write all new.