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


    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...

    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>'

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



    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
    Sencha Architect Development Team

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar