Page 1 of 1

carousel

Posted: Mon May 12, 2014 8:43 am
by laura6372139

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!


carousel

Posted: Mon May 12, 2014 9:29 am
by Kateryna Grynko

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).


carousel

Posted: Mon May 12, 2014 2:02 pm
by laura6372139

Hi katya:

I use this code, but a I have errors;

var carousel = Appery("mobilecarousel");

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

Image Image


carousel

Posted: Mon May 12, 2014 2:18 pm
by Kateryna Grynko

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.


carousel

Posted: Mon May 12, 2014 2:27 pm
by laura6372139

Thanks Katya. It works perfect!