PDA

View Full Version : Always slide on the left



dbp
6 Dec 2010, 6:38 PM
Hello !

I have a Tab Panel and i would like to always slide on the left direction, whatever the order of the items.

Here is my code :


cardSwitchAnimation: {type: 'slide', direction: 'left', duration: 500},


type, and duraction worked well, but, direction seems to be ignored.
It alway slide in the direction of items positions.

Thank for any help!
regards.

mrsunshine
7 Dec 2010, 1:44 AM
In TabPanel cardSwitchAnimation only excepts a string of the animation type http://dev.sencha.com/deploy/touch/docs/?class=Ext.TabPanel

not a animation config object, this will only work with normal Panels with cardlayout or a carousel component

dbp
7 Dec 2010, 2:08 AM
mrsunshine, thank you for taking time to reply.

I understand, i will check this out.
In the mean time, i have been able to find a workaround.

Thank you very much.
Regards.