PDA

View Full Version : Tap event for a carousel in mvc!



arunc
13 Nov 2011, 10:47 PM
how can i add tap event to a carousel using mvc?, i am able get the select event of a list using its xtype in control, but my doubt is how can i get tap event of the carousel using control?

AndreaCammarata
14 Nov 2011, 1:14 AM
Hi arunc.
So, if I well understand what you want to achieve is to get the event "tap" when the user tap anywhere inside a carousel card, am I correct?

arunc
14 Nov 2011, 2:29 AM
what i want to do is like that , imagine we have 5 item in one carousel and i want to show separate views(pages) on each item tap!

rdougan
22 Nov 2011, 12:03 AM
Get a reference the carousels element, and listen to the tap event.


carousel.element.on('tap', this.doSomething, this);