开发者

How to disable list component from changing colour when tapped on in sencha touch?

开发者 https://www.devze.com 2023-04-03 14:32 出处:网络
I would like t开发者_开发知识库o be able to disable an item in the list component from changing colour when tapped on in Sencha touch. Is there a way to do this? I browsed through the api documentatio

I would like t开发者_开发知识库o be able to disable an item in the list component from changing colour when tapped on in Sencha touch. Is there a way to do this? I browsed through the api documentation of the list component but couldn't see a configuration option that allowed this to be changed.

Thanks.


Try setting the selectedCls to an empty string in the List's config.


listen the 'select' event on list component and return false

0

精彩评论

暂无评论...
验证码 换一张
取 消