Tuesday, March 13, 2012

Sencha Touch Carousel force slide

var carousel = Ext.getCmp("IDOfCarousel");
carousel.next(); // .previous();

//to get active item
// but note that caroisel.next or previous will take time to animate and reflect.
//  therefor, to jump 3 slide away, just call 3 times and dont expect activeIndex to reflect directly after the call.
carousel.activeIndex


No comments: