1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    55
    Vote Rating
    0
    justinKohactive is on a distinguished road

      0  

    Default How to add a list icon?

    How to add a list icon?


    I see this class, i am trying to add a pictos icon to my list items, anyone know how to do this?

  2. #2
    Sencha User
    Join Date
    Oct 2010
    Posts
    80
    Vote Rating
    0
    linuxyf is on a distinguished road

      0  

    Default


    use componentView, look into kiva example

  3. #3
    Sencha User SunboX's Avatar
    Join Date
    Mar 2010
    Posts
    238
    Vote Rating
    28
    SunboX has a spectacular aura about SunboX has a spectacular aura about

      0  

    Question


    I want to add a Ext.field.Checkbox to every list item. How to do this?

    greetings Sunny

  4. #4
    Sencha User
    Join Date
    Oct 2010
    Posts
    80
    Vote Rating
    0
    linuxyf is on a distinguished road

      0  

    Default


    Quote Originally Posted by SunboX View Post
    I want to add a Ext.field.Checkbox to every list item. How to do this?

    greetings Sunny
    use componentView, refer to kiva example

  5. #5
    Ext JS Premium Member Brendan Carroll's Avatar
    Join Date
    May 2007
    Location
    Balmer, MD.
    Posts
    139
    Vote Rating
    1
    Brendan Carroll is on a distinguished road

      0  

    Default Less heavy option

    Less heavy option


    ComponetView may be a bit too heavy depending on what you want to do. If all you want is to add an icon simply define the placeholder in your itemTpl like so.

    Code:
    Ext.define('Sha.view.CatagoriesList', {
        extend: 'Ext.List',
        xtype: 'catagorieslist',
        headerTitle: 'Categories',
        config: {
            allowDeselect: true,
            store: 'Catagories',
            itemTpl: '<img src="{PHOTO}" class="imgItm"/><div class="name">{TYPE}</div>'
        },
    
        initialize: function () {
            //console.log('initialize caatagories list');
            this.callParent();
        }
    });
    If it's the same icon for every list item than it gets even easier and you can do it all in your css.
    -BC ...

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