1. #1
    Sencha User crocop21's Avatar
    Join Date
    May 2012
    Posts
    65
    Vote Rating
    0
    crocop21 is an unknown quantity at this point

      0  

    Default Using template in architect

    Using template in architect


    Hi all i am trying to implement a example with Architect, i want to use template in a container

    but i cant get the store to give the node to my tpl, would appreciate some help...

    Code:
    Ext.define('MyApp.view.MyContainer', {
        extend: 'Ext.container.Container',
    
        autoShow: true,
        data: 'this.getusersStore();',
        height: 250,
        width: 400,
    
        initComponent: function() {
            var me = this;
    
            Ext.applyIf(me, {
                tpl: [
                    '<span style="font-size:  1.2em">Users:</span><tpl for="."><p  class="user"><img src="{photo}" />{name}</p></tpl>'
                ]
            });
    
            me.callParent(arguments);
        }
    
    });

  2. #2
    Sencha - Architect Dev Team jjohnston's Avatar
    Join Date
    Sep 2010
    Posts
    516
    Vote Rating
    17
    jjohnston will become famous soon enough jjohnston will become famous soon enough

      0  

    Default


    Not really an Architect question, but this won't work because 'this.getusersStore()' can not be executed during class definition because there is no 'this' at that point (well there is but it's the global window object.)

    In addition you'll need to wait for the store's data to load before calling setData().

    I'd suggest you post in the Ext JS forums to get better guidance on how to design this data flow.
    Jason Johnston
    @lojjic
    Sencha Architect Development Team

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