1. #1
    Sencha User
    Join Date
    Nov 2011
    Location
    Toronto
    Posts
    105
    Vote Rating
    2
    basememara is on a distinguished road

      0  

    Exclamation Why config for Touch MVC applications?

    Why config for Touch MVC applications?


    I am noticing more and more differences between the Touch and Ext JS 4 MVC conventions. Why in a Touch app must I put everything under 'config' or else it does not work?

    Code:
    Ext.define('MyApp.view.Viewport', {    extend: 'Ext.Panel',
    
    
        config: {
            fullscreen: true,
            layout: 'fit',
            items: [
                {
                    xtype: 'panel',
                    layout: {
                        type: 'card',
                        align: 'stretch'
                    },
                    items: [
                        {
                            xtype: 'somelist'
                        }
                    ]
                }
            ]
        }
    });
    It is a bit unintuitive that I must put everything in the config because this is not the way it is done in non-MVC or even in the Ext JS 4 MVC way. Is this going to change in the Touch release, or is this intentional?

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    That's because the new class system updates for Touch 2.0. "config" is insanely more powerful and diverse when it comes to Touch 2.0 relative to Ext JS 4.

    In Ext 4, I rarely use config, because it doesn't necessarily buy you too much. In touch 2.0, you get a ton more out of the box. The framework code actually uses config all over the place.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi