Set a different animation while clicking a different view on the nav view in senchan

I want to set different types of animation for each view that I click on the navigation view. I applied animation in the layout of the navigation view, but it was applied to all views of the navigation view.

Here I add my view so I want to set the animation here on a specific view.

button.up('navigationview').push({
xtype: 'rightPanel',
});

      

+3


source to share


2 answers


Tyr this One ..

 Ext.getCmp('Your Navigation View').getLayout().setAnimation('Which ever animation You want');

      

Below are some types of animation.



 cube *
 fade
 flip *
 pop
 slide
 swipe *

      

Hope this help ... Happy coding

+6


source


You can change the animation of the navigation view each time before clicking the new view.



Ext.ComponentManager.get("navigationview").getLayout().setAnimation('fade');

      

0


source







All Articles