PDA

View Full Version : How to move Carousel pages using button click



ssdesign
29 Jun 2010, 1:54 AM
Hi,
I would like to know if this is possible.

I would like to move the Carousel pages using swipe as well as button press.
What events should I be looking at?

Thanks

ssdesign
30 Jun 2010, 1:06 AM
Got this to work:


carousel1.setActiveItem(cauroselCounter, true, true);

TommyMaintz
30 Jun 2010, 9:36 AM
Just wanted to give you a heads up. In the new release (which will be up within the next 15 minutes) the Carousel actually leverages a CardLayout. This means that you can switch to another item in the carousel just like you could on any container with a CardLayout.

In your case the new code would like like


carousel1.setCard(carouselCounter);

ssdesign
1 Jul 2010, 11:01 PM
Hi,
I am trying to find the setCard function in the API but cant find it.

Local documentation does not work and online documentation seems to be missing this.
Where can I find it?

Thanks

meyerovb
1 Jul 2010, 11:07 PM
@ssdesign setCard method documentation issue: http://www.sencha.com/forum/showthread.php?102343-best-practice-for-animating-between-quot-pages-quot-of-an-app/page2#18

meyerovb
1 Jul 2010, 11:49 PM
@ssdesign About the api documentation, must be loaded in a web server locally, relies on ajax call to load each page: http://www.sencha.com/forum/showthread.php?103087-API-documentation-not-loading#3