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 Contributor
laxad
Posts: 8
Registered: ‎12-08-2012
My Carrier: Rogers

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: 535
Registered: ‎05-17-2009

Re: Push a navigationpane inside a tabbedpane

Please use plain text.
Developer
bcs925
Posts: 258
Registered: ‎07-13-2012
My Carrier: T-Mobile

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.