Results 1 to 2 of 2

Thread: Carousel SetCard

  1. #1

    Default Carousel SetCard

    Whats the best way to setCard (not active) in a carousel. Basically I would like to update the next couple of cards every time the users switches a card.

    I can do it this way:
    panel.items.items[pageIndex].body.dom.innerHTML = ''

    But I'm looking for a more elegant way using Object Item.

    I'm loading an image carousel and I would like to preload a couple of images every time a user switches to next card.

    Thank you in advance.

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,248

    Default

    Use the update method on the component.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Similar Threads

  1. Carousel object has no method setCard?
    By DaveC426913 in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 30 May 2011, 3:33 PM
  2. Carousel setCard() method does not function
    By DaveC426913 in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 25 Aug 2010, 10:47 AM
  3. Carousel, setCard/scrollToCard issue
    By mekkano in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 25 Aug 2010, 1:19 AM

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
  •