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

Web and WebWorks Development

Reply
Contributor
mserina
Posts: 44
Registered: ‎11-12-2012
My Device: BB 10 Dev Apha
Accepted Solution

How to go back during navigation

Hi guys,

sorry for my trivial question..but I'm striving to allow a user going back to previous page on a BB10 webworks application..I cannot figure out neither which is the gesture nor to display the bottom bar containing the back button (e.g. like in "Settings" application).

 

I am a bit confused..

 

Thanks a lot

-marco

Retired
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10

Re: How to go back during navigation

There are several ways to accomplish this.

 

1. Use a framework such as BB UI. This will give you screen pushing and popping and the BB10 look and feel with an action bar at the bottom. You can see the project here: https://github.com/blackberry/bbUI.js

 

2. You can also use the Jquery Mobile BB10 Theme which would let you simply add the back action bar and include the js and css files. Quite simple. Then hook up the back button to window.history.back().  You can check out the project here https://github.com/blackberry/jQueryMobile-BB10-Theme.

 

3. The last option is your own navigation. You could easily hook it into window.location.back() or something similar.

 

Hope that helps

@erikjohnzon
erjohnson@blackberry.com
Contributor
mserina
Posts: 44
Registered: ‎11-12-2012
My Device: BB 10 Dev Apha

Re: How to go back during navigation

Thanks a lot man..I'm currently taking a look at BB UI..hope it'll solve my problems

cheers

-marco

 

 

Retired
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10

Re: How to go back during navigation

No worries. Glad your on your way.

@erikjohnzon
erjohnson@blackberry.com