Loading a Carousel from a Store in Sencha Touch 2?

你离开我真会死。 提交于 2019-12-01 06:27:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!