28 Feb 2012 2:47 PM #1
Using Buttons to change Views.
I can not find a good example of a button, outside of a tab or navigation bar, that will change views. How is this done?
I want the buttons to "link" to a specific view (based on which button tapped) contained within a tabPanel. Basically two ways to get to that view. One from the home/splash view and once you tap on a button it would go the tabPanel view from there on out.
Any help understanding this would be appreciated!
28 Feb 2012 5:24 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
You have to use setActiveItem on the component you want to change an active item.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.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.
15 Jul 2012 1:03 AM #3
Hi, Sorry, I'm struggling with this, too. Currently I have
where addtostory is the useralias of a view I have (this was following along in a webinar). I'm very confused! Are there any instructions around for setting a button to change to a different view?
I'm new to sencha and using Architect 2, and not much of a programmer.
I like how the tab navigation works, but have specific cases where that isn't desired and would just like a good old fashion button!
Big learning curve, but getting there! <3 Sencha so far.