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
macaronlover
Posts: 101
Registered: ‎01-06-2014
My Device: Q10

Tap on go to a different page

What needs to go in here so that when the users taps something it will take them to different page?

 

            onTouch: {

?
            }

Developer
BBSJdev
Posts: 6,118
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Tap on go to a different page

You will need to attach a page using attachedObjects and then push that page on to the navigationPane stack.

 

http://developer.blackberry.com/native/documentation/cascades/ui/navigation/multiple_screens_stack.h...

 

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Developer
macaronlover
Posts: 101
Registered: ‎01-06-2014
My Device: Q10

Re: Tap on go to a different page

How can I add a back button with the bar at the bottom of the screen?

Developer
BBSJdev
Posts: 6,118
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Tap on go to a different page

You will need to make one of your tabbedPane Pages a navigationPane...

 

http://developer.blackberry.com/native/reference/cascades/bb__cascades__navigationpane.html

 

http://developer.blackberry.com/native/documentation/cascades/ui/navigation/multiple_screens_stack.h...


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Developer
macaronlover
Posts: 101
Registered: ‎01-06-2014
My Device: Q10

Re: Tap on go to a different page

That I've done. How do I add the back button?

Developer
BBSJdev
Posts: 6,118
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Tap on go to a different page

If you've done everything correctly it will just be there, nothing explicit needs to be done.

 

Possibly you are looking at your first page which obviously won't have a back button as there is nothing to go back to.

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Developer
macaronlover
Posts: 101
Registered: ‎01-06-2014
My Device: Q10

Re: Tap on go to a different page

Some of my pages contain many tabs, so is it possible to implement a back button within the title bar?

Developer
BBSJdev
Posts: 6,118
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Tap on go to a different page

[ Edited ]

I'd advise against going against the UI guidelines but apart from that there is no reason you can't pop the page from a button, including one in a TitleBar.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.