1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    52
    Vote Rating
    2
    Answers
    4
    michael.parrott is on a distinguished road

      0  

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

    Unanswered: '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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    Answers
    3575
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    These configs just haven't been added to the docs. There is an open bug for this.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread