PDA

View Full Version : Carousel in List as Item



jkristen
23 Sep 2011, 8:30 AM
Hey guys


i'm looking for a way to display a carousel in the first cell of a List. The carousel sould show some pictures. Is there any different way to setup a list element (cell) as by using the itemTpl property of the list.


thanks for helping

Champi
23 Sep 2011, 11:18 AM
Hi,

take a look at renderTo property :


renderTpl : '<div class="myCaroussel"></div>


this.getEl().select('.myCaroussel').each(function(item) {
new Ext.Caroussel({
//some properties
renderTo : item
});

});

jkristen
26 Sep 2011, 2:49 AM
Thank you for answering.
Can you explain a little bit more the correlation between the renderTpl und renderTo property?
Where should the
this.getEl().select('.myCaroussel').each(function(item) {
new Ext.Caroussel({ //some properties renderTo : item }); Function be?

edspencer
26 Sep 2011, 10:48 AM
Components inside lists aren't supported out of the box in 1.x and take a fair bit of hacking to get working. We'll have a rather better solution for you in 2.x

jkristen
28 Sep 2011, 11:40 PM
Components inside lists aren't supported out of the box in 1.x and take a fair bit of hacking to get working. We'll have a rather better solution for you in 2.x
that sounds very good, but how long i have to wait on Sencha Touch 2.x ;-)

edspencer
30 Sep 2011, 3:19 PM
that sounds very good, but how long i have to wait on Sencha Touch 2.x ;-)

<tease>Not long at all :)</tease>