Results 1 to 5 of 5

Thread: Starting with Touch 2 - Viewport / MVC and tabbar

  1. #1
    Touch Premium Member
    Join Date
    Nov 2011
    Posts
    125
    Vote Rating
    1
      0  

    Question Starting with Touch 2 - Viewport / MVC and tabbar

    Hello,

    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.
    Thanks

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Vote Rating
    1391
      0  

    Default

    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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Touch Premium Member
    Join Date
    Nov 2011
    Posts
    125
    Vote Rating
    1
      0  

    Default

    Thanks it works, but how can I pass a parameter? do i need a route?

  4. #4
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    176
    Vote Rating
    20
      0  

    Default

    Quote Originally Posted by JavascriptParrot View Post
    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).
    Look at here: https://github.com/kostysh/Sencha-To...ith-NestedList
    TabBar, NestedList and disclosure card, all as you want

  5. #5
    Touch Premium Member
    Join Date
    Nov 2011
    Posts
    125
    Vote Rating
    1
      0  

    Default

    Thank you!

Posting Permissions

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