user1432072
user1432072

Reputation: 43

Example of switching views with buttons for a carousel?

Can any one point me to an example of changing views with buttons for a carousel ?

I would like the option to swipe or click to change views.

Thanks

Upvotes: 0

Views: 623

Answers (1)

Eli
Eli

Reputation: 14827

You've various ways to achieve it, you can either use setActiveItem:

carousel.setActiveItem(1); // Move to the 2nd carousel's item.

or apply next and previous method on your button handler to switch to the next and previous card of your carousel:

carousel.next();

carousel.previous();

Here is a demo: http://www.senchafiddle.com/#Ukg1N

Upvotes: 2

Related Questions