-
23 Jul 2012 12:58 PM #1
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
-
Best Answer Posted by mitchellsimoens
Extend the navigation view and override the onBackButtonTap method.
-
25 Jul 2012 4:50 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
- Answers
- 3107
Extend the navigation view and override the onBackButtonTap method.
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.
-
25 Jul 2012 8:31 AM #3
-
25 Jul 2012 11:32 AM #4
-
26 Jul 2012 12:48 PM #5
-
27 Jul 2012 6:03 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
- Answers
- 3107
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
________________
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.
-
27 Jul 2012 6:11 AM #7
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.


Reply With Quote