-
15 Nov 2011 6:26 PM #1
cardSwitchAnimation on Ext.tab.Panel
cardSwitchAnimation on Ext.tab.Panel
Hello,
The old Ext.TabPanel had a 'cardSwitchAnimation' configuration parameter. How do I disable the switching animation in the new Ext.tab.Panel?
Thanks in advance..!
-
16 Nov 2011 10:02 AM #2
Hi.
In Touch 2 you can set the wanted animation directly inside the layout object.
For istance:
Hope this helps.Code:layout: { type: 'card', animation: { type: 'slide', direction: 'left' } }Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
-
16 Nov 2011 5:59 PM #3
Oh, thanks! I'm trying to disable the switching animation.. and setting animation: false or null throws an error. How should I do this?
-
19 Nov 2011 4:06 PM #4
I am also wondering how to disable the card switch animation on a TabPanel. Setting it to false, null, undefined, etc doesn't work. It seems really odd that it has one by default since no native UI uses an animation when changing tabs.
Twitter: lylepratt
-
23 Nov 2011 3:20 PM #5
I would also like to know the answer to this. I can't turn off animation using setAnimation. - y
-
28 Nov 2011 10:54 AM #6
I found a workaround
I found a workaround
Andrea's code gave me an idé for a workaround.
If you add duration:0 like this:
Code:layout: { animation: { duration:0 } }
-
28 Nov 2011 2:50 PM #7
That works! Thank you for the workaround!
- y
-
25 Aug 2012 1:08 AM #8


Reply With Quote