Hybrid View

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    81
    Vote Rating
    0
    sarah_77 is on a distinguished road

      0  

    Default MVC structure and views in index page

    MVC structure and views in index page


    Hi! I'd like to know the best way for don't load all views in my index.html page.

    Is there a solution in ST2 for manage this problem??
    If I've 10 views, do I've to load all 10 view in index.html page?

    Thanks

  2. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    If you mean loading the files, that is not an issue. You should use our SDK Tools to build a compressed version of your application.

    If you mean having all the views rendered at the same time (for example, 10 views in a card layout), then perhaps you could dynamically add them using the Ext.Container.add method.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Posts
    81
    Vote Rating
    0
    sarah_77 is on a distinguished road

      0  

    Default


    I mean this, suppose that my app has 20 views (list pages, details pages, about page .... etc)

    In ST1 I've to include all these view in index.html; I think that this make app slow because all pages are loaded in index.html

    In ST2 is it the same?

    Thanks

Thread Participants: 1