1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    8
    Vote Rating
    1
    cburgdorf is on a distinguished road

      1  

    Default A LazyCarousel component in 80 lines of code

    A LazyCarousel component in 80 lines of code


    I blogged about how we built a LazyCarousel on top of the existing carousel.

    http://www.couchcommerce.com/blog/20...r-sencha-touch

    You can easily built infinite carousels on top of it. Here is one example with a truly infinite calendar carousel (also linked from the posting)

    http://cburgdorf.github.com/sencha-p...-calendar.html

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,327
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Tested on my iPhone when you tweeted me, performs quite well in your demo!
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    177
    Vote Rating
    9
    huberte will become famous soon enough

      0  

    Default


    Thanks cburgdorf !!

    I was looking for something like this for an educational purpose (loading svg in a carousel)

    One thing though : ain't bottom dots useless then ? Would it be possible to still have the corresponding dots (saying 6 or 7) but not loading them ?

    Thanks...

  4. #4
    Sencha User
    Join Date
    Sep 2012
    Posts
    8
    Vote Rating
    1
    cburgdorf is on a distinguished road

      0  

    Default


    Yes, they are absolutely useless and I basically just left them in for the demo to show that there are really only three items at any time. But you can easily set the indicator to false.

    I'm not sure if you can trick the indicator to show a different number. Probably yes.