laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

carousel

I have a carousel.

How can I load the second item of the carousel when I open the screen?

That is, when I open the screen loads the second item of the carousel

thanks!

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

carousel

Hi Laura,

Use the following code:prevar carousel = Apperyio("carouselName");
carousel.carouselRoot.carousel("to", index);/preWhere 'index' is a number of slide you want to navigate to (count from 0).

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

carousel

Hi katya:

I use this code, but a I have errors;

var carousel = Appery("mobilecarousel");

carousel.carouselRoot.carousel("to", 1);

Image Image

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

carousel

Laura,

On what event do you run the code? The component seems to be non-initialized. If you use Load event, you could try Page Show instead.

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

carousel

Thanks Katya. It works perfect!

Return to “Issues”