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
AlexXF
Posts: 323
Registered: ‎03-10-2010
My Device: Bold 9780, DevAlpha
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
AlexXF
Posts: 323
Registered: ‎03-10-2010
My Device: Bold 9780, DevAlpha

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();
                    }
                }