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
    239
    Vote Rating
    27
    SunboX will become famous soon enough SunboX will become famous soon enough

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

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