epalm
5 Jul 2010, 8:01 AM
Ext.setup({
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {
new Ext.TabPanel({
fullscreen: true,
tabBar: {
dock: 'bottom',
layout: { pack: 'center' }
},
animation: 'fade',
items: [{
title: 'Search',
iconCls: 'search',
cls: 'card card1',
items: {
xtype: 'carousel',
items: [{
html: 'Card #1',
cls: 'card card1',
},{
html: 'Card #2',
cls: 'card card2'
},{
html: 'Card #3',
cls: 'card card3'
}]
}
},{
title: 'Other',
html: '<p>Something else could go here...</p>',
iconCls: 'info',
cls: 'card card2'
}]
});
}
});
TabPanel and Carousel work on their own, but if I put a Carousel inside a TabPanel, the Carousel doesn't budge.
Any suggestions?
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {
new Ext.TabPanel({
fullscreen: true,
tabBar: {
dock: 'bottom',
layout: { pack: 'center' }
},
animation: 'fade',
items: [{
title: 'Search',
iconCls: 'search',
cls: 'card card1',
items: {
xtype: 'carousel',
items: [{
html: 'Card #1',
cls: 'card card1',
},{
html: 'Card #2',
cls: 'card card2'
},{
html: 'Card #3',
cls: 'card card3'
}]
}
},{
title: 'Other',
html: '<p>Something else could go here...</p>',
iconCls: 'info',
cls: 'card card2'
}]
});
}
});
TabPanel and Carousel work on their own, but if I put a Carousel inside a TabPanel, the Carousel doesn't budge.
Any suggestions?