Page 1 of 1

mobilecarousel show event

Posted: Mon Jan 13, 2014 5:56 pm
by Elle Bolt

I have an mobilecarousel that populates dynamically from a query rest service, I then have an event setup on the mobilecarouselitem to set a local storage Variable on the show event from a label populated in the mobilecarouselitem.

Now ether i'm misunderstanding the show event and have the wrong approach here or something is missing please help.


mobilecarousel show event

Posted: Mon Jan 13, 2014 6:52 pm
by Kateryna Grynko

Hi Elle,

Do you want to programmatically show/hide carousel or its item? Or do you want to programmatically run some code when a specific Carousel item is selected?


mobilecarousel show event

Posted: Mon Jan 13, 2014 7:01 pm
by Elle Bolt

Hi Katya,

What i want to do is set a Local Storage Variable based on the carousel item "showing" so the variable will contain the value of specified label in first carousel item then it will change to the label of the next carousel item moved to.


mobilecarousel show event

Posted: Mon Jan 13, 2014 8:38 pm
by Kateryna Grynko

Elle,

So you want to get a value of label, a visible carousel item. You can use this code:prevar val = $(Appery("mobilecarousel").carouselRoot.find(".ui-carousel-active [name=mobilelabel]")).text();/preWhere 'mobilecarousel' is a carousel name,
'mobilelabel' is a label name.