TwinPrimes
TwinPrimes

Reputation: 141

dynamically updating HTML content of Sencha Touch Carousel items?

How do I update the HTML content of a Sench Touch Carousel item ? I'm trying something like this and it is having no effect:

item = carousel.getActiveItem();
item.html = "...new html string ...";
carousel.doComponentLayout();

Thanks.

Upvotes: 3

Views: 5737

Answers (1)

TwinPrimes
TwinPrimes

Reputation: 141

After much experimentation, found that changing item.html = "..."; to item.update( "..." ); does the trick.

Upvotes: 11

Related Questions