O'Reilly logo

Sencha Touch Cookbook by Ajit Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Carousel

Carousel is an extension of Ext.Panel and provides the ability to slide back and forth between different child items. Carousel, internally, uses the card layout to render items and allows the user to slide back and forth by setting the active item appropriately.

Getting ready

Make sure that you have set up your development environment by following the recipes outlined in Chapter 1.

How to do it...

Carry out the following steps:

  1. Create and open a new file named ch06_03.js and paste the following code in it:
    Ext.setup({ onReady: function() { var actionSheet = new Ext.ActionSheet({ ……….. //code is same as the one in previous recipe ……….. //code is same as the one in previous recipe }); var data = [{ album:'rose', url:'http://www.pictures.vg/vgflowers/400x300/flowers_pics_4870.jpg', ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required