Page 1 of 1

Carousel Click Event

Posted: Tue May 31, 2016 12:34 am
by Deon

Hi

I would like to add an event to the carousel when it is clicked it will store the title of the clicked carousel item to a storage variablet and then navigate to a page.
I have tried the click and tap event handlers on the carousel_item but neither works.

Is there a way to do this?
Thank you


Carousel Click Event

Posted: Wed Jun 01, 2016 2:02 pm
by Serhii Kulibaba

Hello Deon,

Please add a click event handler to the mobilecarouselitem component, it works fine.

Could you clarify, what libraries version do you use?


Carousel Click Event

Posted: Wed Jun 01, 2016 6:18 pm
by Deon

Latest libraries. New app. . Does not work


Carousel Click Event

Posted: Wed Jun 01, 2016 9:01 pm
by Illya Stepanov

Hi Deon -

To debug this further, inside the event handler for click and ontap, add a simple "alert(..)" just to be sure the event is fired and the handler is called. Once you got this working, it will be simpler to get the saving part working.