Reputation: 107
I have the follow ExtJS Carousel, but I can't make it work...
title: 'Pictures',
items: [{
xtype: 'carousel',
listeners: {
initialize: 'onCarouselInitialize'
}
}]
In the ViewController:
onCarouselInitialize: function(component, eOpts) {
var url = 'resources/images/sample.jpg'; // valid URL
component.add({
xtype: 'image',
src: url
});
}
...and nothing happen! I couldn't find an example populating the carousel dynamically. Some help, please!!!!
Upvotes: 0
Views: 129
Reputation: 107
SOLVED: I was missing defining the height of the container panel
Upvotes: 0