Home:ALL Converter>Carousel scrollable?

Carousel scrollable?

Ask Time:2012-09-23T08:24:08         Author:Huberte

Json Formatter

carousel scrollable ?

Is there a solution to scroll an image in a carousel ? scrollable, scroll, do not work

thks ...

Code:

Ext.define('carousel.view.test', {    extend: 'Ext.carousel.Carousel',


    xtype:'test',


    config: {
        fullscreen: true,
       scrollable: 'vertical,


        items: [
            {
                xtype: 'image',
                html: '<img src=./resources/images/1.png />',
                            scrollable: 'vertical'                   


            },
            {
                xtype: 'image',
                html: '<img src=./resources/images/2.png />'

            }
        ]
    }


});

EDIT :

I may have found a solution, but it works on chrome, not on android or Ios, why ?

It works

config: {     

        items: [
            {xtype: 'container',

                scrollable: 'vertical',
                directionLock:true,
                items:[
                           { xtype: 'image',                         

                            html: '<img src=./resources/images/1.png />'}
                ]                            
            },

Author:Huberte,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12548753/carousel-scrollable
Ballsacian1 :

scrollable : {\n direction : 'both',\n directionLock : true\n}\n",
2012-10-02T19:17:25
yy