Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1570 in a recent build.
  1. #1
    Sencha User
    Join Date
    Jan 2012
    Location
    UK
    Posts
    4
    Vote Rating
    0
    markstevens is on a distinguished road

      0  

    Default Is there a Touch 2.0 Ext.List itemCls equivalent?

    Is there a Touch 2.0 Ext.List itemCls equivalent?


    I have noticed that in Sencha Touch 2.0 preview 4 itemCls in lists is not applied to list items. I have also tried itemConfig: { cls: 'class' } and itemConfig: { itemCls: 'class' } but they don't seem to work either. I have a workaround using CSS selectors but I wondered if there's another way.
    Thanks
    Mark

  2. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    It looks like that has been left out of DataView/List unfortunately. I'll move this to the bugs forum and open a ticket.

    However, each item gets a cls from the baseCls of the list. So in a default List, each item would have the cls of x-list-list.

    Thanks!
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  3. #3
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    This is now part of the next release. You will be able to add a separate itemCls as a config or dynamically.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 2