-
14 Dec 2011 1:35 PM #1
ST2 animation of a modal panel.
ST2 animation of a modal panel.
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.
Code: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!
-
14 Dec 2011 2:23 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
Animations aren't fully baked in just yet.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Dec 2011 9:20 PM #3
Yeah. Unfortunately there is no easy way to do this right now.
Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
-
17 Jan 2012 10:29 AM #4
this code showing error... when i use in 1st card, and work properly in other card.Code:show: function(animation) { this.callParent(); Ext.Animator.run([{ element : this.element, xclass : 'Ext.fx.animation.SlideIn', direction: Ext.os.deviceType == "Phone" ? "right" : "left", duration : this.animationDuration }, { element : 'imageCarasoul', xclass : 'Ext.fx.animation.SlideIn', duration: this.animationDuration, direction: Ext.os.deviceType == "right" }]); }


Reply With Quote