1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    35
    Vote Rating
    1
    Nos is on a distinguished road

      0  

    Default Ext.application launch function question ?

    Hi,

    I added a launch function to my Ext.application.
    I believed that this override the old content of launch function.

    I explain :

    I began my project with Sencha Architect 2.0. I updated today with 2.1.

    In my app.js, i had by default:
    launch: function() {
    Ext.create('MyApp.view.Main', {fullscreen: true});
    }

    but i would like to have :
    launch: function() {
    MyApp.main = Ext.create('MyApp.view.Main', {fullscreen: true});
    }

    How to realize this with Sencha Architect ?

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    139
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default

    Right click your Main view and click "Unmark as Initial View".
    Go to the application node and add a launch function

    Put in the contents of there
    Code:
    MyApp.main = Ext.create('MyApp.view.Main', {fullscreen: true});
    Aaron Conran
    @aconran

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    35
    Vote Rating
    1
    Nos is on a distinguished road

      0  

    Default

    Thank you. It works perfectly