-
13 Dec 2012 6:36 AM #1
Unanswered: NavigationView: drill down without animating
Unanswered: NavigationView: drill down without animating
Hello,
there is a way to add items to a navigationview without animating them?
I've tried add() instead of push(), but then I found that they're essentially the same thing.
Thanks
-
13 Dec 2012 7:25 PM #2
Considering this snippet from the source of the Ext.navigation.View class:
the animation is baked in. You could override this by just specifying:Code:/** * @cfg * @hide */ layout: { type: 'card', animation: { duration: 300, easing: 'ease-out', type: 'slide', direction: 'left' } }
in your navigation view but then I'd ask why not just use a card layout to begin with?Code:layout: 'card'
BriceBrice Mason
Front End Developer
Modus Create
@bricemason
bricemason.com
Sencha Touch Screencasts
Vimeo - Sencha Touch Channel
Github Projects:
Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.
Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.
Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.
-
14 Dec 2012 12:40 AM #3
I just want to disable the animation temporarily. That's because I'm trying to restore my application's state by using routes, and I want it to show the navigation view at a specific level, like if the user tapped things to reach a specific card.
Any chance?
-
14 Dec 2012 12:43 AM #4
Maybe something like this?
I'm going to try that soon, I'm not on my computer right now.Code:var anim = navView.getLayout().getAnimation(); navView.getLayout().setAnimation(false); navView.add(myNewCard); navView.getLayout().setAnimation(anim);
-
14 Dec 2012 1:13 AM #5
I've ended doing:
But while the content doesn't animate, the navigationbar animation remain active.Code:navView.getLayout().getAnimation().disable(); navView.add(myNewCard); navView.getLayout().getAnimation().enable();


Reply With Quote