20 Feb 2012 10:42 PM #1
Starting with Touch 2 - Viewport / MVC and tabbar
I'm new with Sencha Touch, have playing with Touch 1 and now we decided to use Touch 2. But I'm totally confused, I don't now what is the best way to setup our application. Could you give some advice or short examples?
I need an application with a tabbar, it has 3 tabs and two views that are need to visible without the tabbar at the bottom. In the first tab I need a list, on disclosure of an list item the tab changed to another list (or whatever, the first tab stay active). With a back button it should to go to the first list. So the questions are:
1. What should I use as the viewport? A container, panel or tabbar? I has used the tabbar but I don't know how to display a view that is not a tab.
2. And what is the best way to use the tabbar with MVC?
3. How change I change the content of a tab to another list?
I hope you understand what I mean.
21 Feb 2012 8:06 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
If yo udon't want the tabbar then you can use a container with card layout. To navigate to items (either forward or back) you should use the setActiveItem method on the container.Mitchell Simoens @LikelyMitch
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.
21 Feb 2012 11:59 AM #3
Thanks it works, but how can I pass a parameter? do i need a route?
23 Feb 2012 1:09 AM #4
23 Feb 2012 3:29 AM #5