简体   繁体   中英

How to add css for active item of a list in Sencha touch 2.2.1

I am using list in sencha touch 2.2.1. And I have to add css only on active item of that list. I try following:

listItems.getActiveItem().addCls('gigaspace');

But it add that 'gigaspace' class to whole list and not to active item.

So, how can I add css for active item of a list.

U应该获得选定的列表项,然后将其应用于类... 如何为列表项分配不同的ID或类?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM