bensiu
bensiu

Reputation: 25584

ExtJS 4 Carousel widget

Carousel is part of Sencha Touch, however:

I'm looking for an example of a carousel/scroller type widget that allows me to horizontally slide through a collection of items that I can act on. Does ExtJS provide such a widget, or the components to build one?

Upvotes: 1

Views: 2006

Answers (1)

A1rPun
A1rPun

Reputation: 16847

You can slide horizontally through a Ext.carousel.Carousel when you set the direction config to 'horizontal' (default).


Edit:
You can copy the Carousel.js from the sencha touch build and create your own Carousel in ExtJs4.

Rename and refactor some of the configurations and you are good to go.

Refactor example:

Ext.define('Ext.carousel.Carousel', {
    extend: 'Ext.Container',

must be

extend: 'Ext.container.Container' ,

[Source] I hope this works for you.. I'm pretty sure it will but if it doesnt let me know.

Upvotes: 2

Related Questions