问题
Does anyone have a code example which would enable loading of a Sencha Touch 2 Carousel component from a Store (a JSON Store in my case)? I understand how to load a List which extends DataView, but Carousel appears to be a harder nut to crack since it does not extend DataView.
回答1:
There is no built-in clean way to do this with the framework, however Ed Spencer (who works alongside me on Touch 2) wrote a blog post on how to do it:
http://web.archive.org/web/20121109164506/http://edspencer.net/2012/02/building-a-data-driven-image-carousel-with-sencha-touch-2.html
来源:https://stackoverflow.com/questions/9416057/loading-a-carousel-from-a-store-in-sencha-touch-2