trandroid
20 Jul 2010, 11:24 PM
Hi everybody,
I want to give animations to Panel the code is below. I added animations but it didnt work. I saw docs of Panel
Animation to be used during transitions of cards. Note this only works when this container has a CardLayout. but how will I convert items to cardlayout I do not know.
new Ext.Panel({
fullscreen: true,
id: 'content',
scroll: 'vertical',
styleHtmlContent: true,
dockedItems: [{
xtype: 'toolbar',
dock: 'top',
layout: {
pack: 'center'
},
animation: {
type: 'slide',
cover: true
},
items: [{
xtype: 'splitbutton',
items: [{
text: 'News',
value: 'news',
handler: getNews
}, {
text: 'PP',
value: 'pp',
handler: getNews
}, {
text: 'PS',
value: 'ps',
handler: getNews
}]
}]
});
thanks for replies :)
I want to give animations to Panel the code is below. I added animations but it didnt work. I saw docs of Panel
Animation to be used during transitions of cards. Note this only works when this container has a CardLayout. but how will I convert items to cardlayout I do not know.
new Ext.Panel({
fullscreen: true,
id: 'content',
scroll: 'vertical',
styleHtmlContent: true,
dockedItems: [{
xtype: 'toolbar',
dock: 'top',
layout: {
pack: 'center'
},
animation: {
type: 'slide',
cover: true
},
items: [{
xtype: 'splitbutton',
items: [{
text: 'News',
value: 'news',
handler: getNews
}, {
text: 'PP',
value: 'pp',
handler: getNews
}, {
text: 'PS',
value: 'ps',
handler: getNews
}]
}]
});
thanks for replies :)