David Watkins
David Watkins

Reputation: 95

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

I would like to 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.

Upvotes: 4

Views: 2064

Answers (2)

Stuart
Stuart

Reputation: 3258

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

Upvotes: 9

Osman Alpay
Osman Alpay

Reputation: 143

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

Upvotes: 0

Related Questions