Results 1 to 4 of 4

Thread: A LazyCarousel component in 80 lines of code

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    8
    Vote Rating
    2
      1  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Tested on my iPhone when you tweeted me, performs quite well in your demo!
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    177
    Vote Rating
    9
      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
    2
      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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •