Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 324
Registered: ‎03-10-2010
My Device: Bold 9780, DevAlpha
My Carrier: Vodafone CZ
Accepted Solution

NavigationPane. Return from page D -> A (ABCD)

I have pages, that in stack of navigationpane (A -> B -> C-> D).

 

So, i want to skip all back->back->back... functions and allow user return to initial page A.

 

How to do this? (QML prefered).

Developer
Posts: 324
Registered: ‎03-10-2010
My Device: Bold 9780, DevAlpha
My Carrier: Vodafone CZ

Re: NavigationPane. Return from page D -> A (ABCD)

Found solution by myself:

 

               function navigateToHome() {
                    navPane.navigateTo(navPane.at(0));
                    for (var i = 1; i < navPane.count(); i ++) {
                        var PageNav = navPane.at(1);
                        navPane.remove(PageNav);
                        PageNav.destroy();
                    }
                }