Elle Bolt
Posts: 0
Joined: Mon Jan 13, 2014 5:56 pm

mobilecarousel show event

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

mobilecarousel show event

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?

Elle Bolt
Posts: 0
Joined: Mon Jan 13, 2014 5:56 pm

mobilecarousel show event

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

mobilecarousel show event

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.

Return to “Issues”