Pregunta

I need some help in Sencha Touch 2.3. I want to implement the following functionality: If user taps on a newslist entry it should be highlighted and then go back normal for a short time, like in Whatsapp (If you tap on a contact to chat) or in android contacts if you tap on a contact.

Is there a integrated fnction in Sencha Touch?

Thanks:-)

¿Fue útil?

Solución

are you trying to achieve something like this ? You can simply add and itemtap eventlistener to your list just defer the deselectAll() call for that list.

Code snippet below:

itemtap: function(comp, index, target, record, e, eOpts) {
            Ext.Function.defer(function(a) {
                a.deselectAll(true);
            },
            1000, this, [comp]);
        }
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top