Uncaught
15 Sep 2010, 7:42 AM
Hi!
I have a problem with the Carousel control I couldn't solve. I have a class extended from a Panel in wich I want to show a simple carousel like this:
var cardItems = [];
this.basicCard = new Ext.Component({
scroll: 'vertical',
html: 'Hello Carousel 1!'
});
this.basicCard2 = new Ext.Component({
scroll: 'vertical',
html: 'Hello Carousel 2!'
});
cardItems.push(this.basicCard);
cardItems.push(this.basicCard2);
this.carousel = new Ext.Carousel({
items: cardItems
});
this.items = [this.carousel];
Unfortunately, the carousel doesn't show up and the whole panel stays empty. With the Chrome Developer Tools, I can see the tags generated by the carousel, but it isn't visible. When I change the Carousel to being a Panel, everything works just fine and both messages are shown. The carousels in the demo apps also work, so it's not my browsers fault.
Do you know what I'm doing wrong?
I have a problem with the Carousel control I couldn't solve. I have a class extended from a Panel in wich I want to show a simple carousel like this:
var cardItems = [];
this.basicCard = new Ext.Component({
scroll: 'vertical',
html: 'Hello Carousel 1!'
});
this.basicCard2 = new Ext.Component({
scroll: 'vertical',
html: 'Hello Carousel 2!'
});
cardItems.push(this.basicCard);
cardItems.push(this.basicCard2);
this.carousel = new Ext.Carousel({
items: cardItems
});
this.items = [this.carousel];
Unfortunately, the carousel doesn't show up and the whole panel stays empty. With the Chrome Developer Tools, I can see the tags generated by the carousel, but it isn't visible. When I change the Carousel to being a Panel, everything works just fine and both messages are shown. The carousels in the demo apps also work, so it's not my browsers fault.
Do you know what I'm doing wrong?