keckeroo
22 Oct 2011, 6:33 PM
Should the following app not display the *second* card upon firing up the app ?
Ext.application({
name: 'MyApp',
launch: function() {
var panel = Ext.create('Ext.Panel', {
layout: 'card',
activeItem: 1,
items: [
{ html: 'Card 1' },
{ html: 'Card 2' }
]
});
// panel.setActiveItem(1);
Ext.Viewport.add(panel);
}
});
The commented out panel.setActiveItem line is the only way I can start the card panel with card 2 showing upon rendering.
Thank you!
Kevin
Ext.application({
name: 'MyApp',
launch: function() {
var panel = Ext.create('Ext.Panel', {
layout: 'card',
activeItem: 1,
items: [
{ html: 'Card 1' },
{ html: 'Card 2' }
]
});
// panel.setActiveItem(1);
Ext.Viewport.add(panel);
}
});
The commented out panel.setActiveItem line is the only way I can start the card panel with card 2 showing upon rendering.
Thank you!
Kevin