PDA

View Full Version : Ext.Panel help



jamespaxi
28 Jul 2010, 7:26 AM
Hi folks,

I can't figure out how to animate through items while using Panel.

With TabPanel it is pretty straight forward, but with Panel I cannot find the methods I need to use.


Ext.setup({
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {

var main = new Ext.Panel({
fullscreen: true,
items: [{
title: 'TEST!',
html:'<div id="header"> \
</div> FORM \
<div id="main">\
<form id="form">\
<input type="text" name="url">\
<input type="submit">\
</form>\
</div>',
},{
title: 'TEST2222!',
html:'<div id="header"> \
</div> \
<div id="main"> PAGE 2\
</div>',
}]
});

}
});

Help would be amazing! =)

EDIT: Please

Rohall
28 Jul 2010, 9:43 AM
Sorry, I can't really post code right now, but you most likely want a card layout. Take a look at the api. Once you have that setup you can do something like: containingPanel.setCard("stringID", animation)