Results 1 to 3 of 3

Thread: Change the default initial view

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
      0  

    Default Change the default initial view

    Hi,

    I have a navigation's view with several card inside.

    Code:
            var _liveview = Ext.create('Ext.navigation.View',
            {
                fullscreen: true,
                items:
                [
                    {
                        title :  _strings_live_name[dmngConfig.device[0].LanguageID],
                        layout: 'card',
                        id    : 'live_newliveprofile1',
                        items :
                        [
                                // ...
                        ]
                     },
                    {
                        title :  _strings_live_name[dmngConfig.device[0].LanguageID],
                        layout: 'card',
                        id    : 'live_newliveprofile2',
                        items :
                        [
                                // ...
                        ]
                     }
                ]
           });
    I wanna know how to select the default initial view differently than the last one.

    Indeed, by default the last one start automatically but i wanna change it by another one.

    Thanks in advance for your reply.

    Regards

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    The default view will always be the first view.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
      0  

    Default

    yes, that's what i have seen but is it possible to change this behavior ?

    Another question : i know how to use pop and push but how to select a view by its if or name among the one available in the navigation's view ?

Posting Permissions

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