davidchan
14 Dec 2011, 1:35 PM
Hi,
Currently, I created a popup (extended from Panel, modal: true). After running panel.show(), it just appears.
I would like it to animate it from bottom to up. Not sure how to proceed. I have added the below to the panel configuration to no avail.
Ext.define('MyApp.view.AgentDetails', {
extend: 'Ext.Panel',
xtype: 'agentdetails',
config: {
modal: true,
hideOnMaskTap: true,
centered: true,
height: '90%',
width: '90%',
layout: {
animation: {
type: 'slide',
duration: 500
}
},
items:[
{
xtype: 'toolbar',
title: 'Agent Details',
docked: 'top'
},
{
xtype: 'container',
html: 'Showing details'
}
]
}
});
Thanks!:)
Currently, I created a popup (extended from Panel, modal: true). After running panel.show(), it just appears.
I would like it to animate it from bottom to up. Not sure how to proceed. I have added the below to the panel configuration to no avail.
Ext.define('MyApp.view.AgentDetails', {
extend: 'Ext.Panel',
xtype: 'agentdetails',
config: {
modal: true,
hideOnMaskTap: true,
centered: true,
height: '90%',
width: '90%',
layout: {
animation: {
type: 'slide',
duration: 500
}
},
items:[
{
xtype: 'toolbar',
title: 'Agent Details',
docked: 'top'
},
{
xtype: 'container',
html: 'Showing details'
}
]
}
});
Thanks!:)