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
laurentC
Posts: 264
Registered: ‎02-05-2010
My Carrier: Bouygues Telecom
Accepted Solution

NavigationPane push a new NavigationPane

Hello,

 

The app I'm working on consists on a NavigationPane with action items.

For now the action items open a new page. But what if I want to push a new NavigationPane, which one will open other pages ?

Are we limited to one level or could we use as many NavigationPane levels as we want ?

 

Thanks for your help,

Laurent

Twitter : @LaurentKP
My apps
Please use plain text.
Developer
ekke
Posts: 1,319
Registered: ‎04-08-2010
My Carrier: Telekom.de, O2, Vodafone

Re: NavigationPane push a new NavigationPane

AFAIK:

 

on top of a NavigationPane you'll have only Pages - not NavigationPane's

but to open a new workflow you can open a Sheet and this Sheet can be again a NavigationPane

 

BTW: the root of the App can be a TabbedPane, where each tab can be a NavigationPane

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
laurentC
Posts: 264
Registered: ‎02-05-2010
My Carrier: Bouygues Telecom

Re: NavigationPane push a new NavigationPane

thank you ekke

Twitter : @LaurentKP
My apps
Please use plain text.
Developer
laurentC
Posts: 264
Registered: ‎02-05-2010
My Carrier: Bouygues Telecom

Re: NavigationPane push a new NavigationPane

OK, what  if I push a page defined as an attached object like this :

 

attachedObjects: [        
        ComponentDefinition {
            id: pageADefinition
            source: "PageA.qml"
        }
    ]

 

And inside my PageA.qml I have a new page defined as an attach object :

 

attachedObjects: [        
        ComponentDefinition {
            id: pageAADefinition
            source: "PageAA.qml"
        }
    ]

 

Could I push pageAADefinition from PageA code using

var newPage = pageAADefinition.createObject();

navigationPane.push(newPage);

 

Twitter : @LaurentKP
My apps
Please use plain text.
Developer
ekke
Posts: 1,319
Registered: ‎04-08-2010
My Carrier: Telekom.de, O2, Vodafone

Re: NavigationPane push a new NavigationPane

try it ;-)

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.