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
New Developer
laxad
Posts: 24
Registered: ‎12-08-2012
My Device: Z10 Ferrari Red

Push a navigationpane inside a tabbedpane

I am looking to use a navigation pane inside a tabbed pane with the following structure:

 

TabbedPane{

Tab{

Container{

Container{

Page{

ListView{ ... list items that have onTriggered in here that opens a sheet }

 

When I click this onTriggered, I want a Page to be pushed to a NavigationPane such that I can show more details of the list item in this new page and then get a back button to get back to the list.

 

Thanks,

Daxal

Please use plain text.
Developer
superdirt
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: Push a navigationpane inside a tabbedpane

Please use plain text.
Developer
bcs925
Posts: 262
Registered: ‎07-13-2012
My Device: PlayBook, DA B, DA C, LE Z10 #102, Q10, Z30

Re: Push a navigationpane inside a tabbedpane

Instead of making it a Page inside of the Tab, make it a NavigationPane, and for the sake of clean code you shouldn't code your Tabs inside of the main... so it would be...

 

main.qml:

TabbedPane{
  Tab{
    MyTabOne{}
   }
  Tab{
    MyTabTwo{}
   }
...
}

 MyTabOne.qml

NavigationPane{
  Page{
    ListView{
... } ... } }

 

---
Check out my BB10 Cascades Coding site: BBcascades.com & Cascades Blog: bbcascadescode.tumblr.com

My Built for BlackBerry app: The Dive Plan
Please use plain text.