1. #1
    Sencha User
    Join Date
    Nov 2009
    Location
    Denmark
    Posts
    7
    Vote Rating
    0
    plykkegaard is on a distinguished road

      0  

    Default Unanswered: Order of elements in component

    Unanswered: Order of elements in component


    Hi

    A bit new to this :-)

    I have been messing around with the tweeter demo app changing a few things eg getting data from my own webservice
    One thing puzzles me, how do I decide the order of the fields used in my model?

    I have this currently
    Code:
    Ext.define('ediSettings.model.Settings', {    extend: 'Ext.data.Model',
        fields: [
            { name: "id",                type: "int"},
            { name: "name",              type: "string" },
            { name: "party",             type: "string" },
            { name: "text",              type: "string" },
            { name: "metadata" }
        ],
        proxy: 'ediSettings'
    });
    I all places I have used the same order but the result is like this (a different order of the elements/fields)
    Where do I change this?

    Code:
    <div class="x-inner x-data-item-inner x-layout-vbox" id="ext-element-44" style="-webkit-box-align: stretch; ">
    	<div id="ext-component-9" class="party">
    		<div class="x-innerhtml " id="ext-element-46">MyParty</div>
    	</div>
    	<div id="ext-component-8" class="name">
    		<div class="x-innerhtml " id="ext-element-45">MyCompanyName</div>
    	</div>
    	<div id="ext-component-7">
    	</div>
    	<div id="ext-component-10" class="text">
    		<div class="x-innerhtml " id="ext-element-47"></div>
    	</div>
    </div>
    thanks /Peter

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,795
    Answers
    3467
    Vote Rating
    834
    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


    What are you wanting? The order shouldn't matter at all.
    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.

  3. #3
    Sencha User
    Join Date
    Nov 2009
    Location
    Denmark
    Posts
    7
    Vote Rating
    0
    plykkegaard is on a distinguished road

      0  

    Default


    Not if you're using a template for the items
    The twitter example is using a datamap object
    http://docs.sencha.com/touch/2-0/touch/examples/twitter/index.html

    I assume some of it can be controlled using the cfg in the datamap like setting docked: left for the avatar
    What if I wanted to place the username under the text in the example?

    Thanks /Peter

  4. #4
    Sencha User
    Join Date
    Nov 2009
    Location
    Denmark
    Posts
    7
    Vote Rating
    0
    plykkegaard is on a distinguished road

      0  

    Default


    Never mind, I have reduced the number of fields retreived from the database and did some ugly concatenation in a view to get the data I need
    It's merely a proof of concept for the time being :-)

    rgds /Peter

Thread Participants: 1

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