Results 1 to 2 of 2

Thread: 'sencha generate app' app.js has invalid config?

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    52
    Answers
    4
    Vote Rating
    2
      0  

    Default 'sencha generate app' app.js has invalid config?

    Here is the code for the app.js file that you will get when you run the 'sencha generate app ...' command: (irrelevant parts stripped out)
    Code:
    Ext.application({    name: '{name}',
    
    
        views: ['Main'],
    
    
        icon: {
            '57': 'resources/icons/Icon.png',
            '72': 'resources/icons/Icon~ipad.png',
            '114': 'resources/icons/Icon@2x.png',
            '144': 'resources/icons/Icon~ipad@2x.png'
        },
    
    
        isIconPrecomposed: true,
    
    
        startupImage: {
            '320x460': 'resources/startup/320x460.jpg',
            '640x920': 'resources/startup/640x920.png',
            '768x1004': 'resources/startup/768x1004.png',
            '748x1024': 'resources/startup/748x1024.png',
            '1536x2008': 'resources/startup/1536x2008.png',
            '1496x2048': 'resources/startup/1496x2048.png'
        },
    
    
    } );
    However, if you look at the Ext.app.Application config options, there is no isIconPrecomposed or startupImage. Looking at a past forum thread, it mentions that isIconPrecomposed is a new config that removes the glass effect off of icons when the app is added to the home screen on an iOS device. This seems to have the same effect as a config that IS in the documentation, glassOnIcon. Are these new configs just not added to the documentation yet, or are they outdated? It looks like startupImage may have been replaced by phoneStartupScreen and tabletStartupScreen, but I'm not sure.

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

    Default

    These configs just haven't been added to the docs. There is an open bug for this.
    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

Tags for this Thread

Posting Permissions

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