GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Add a function to the bb object to reload the current topmost screen.
This function will clear the current display and then reload all the contents of that screen just as though it was called via pushScreen(). However, the animations for reloading this screen will not be triggered.
Currently pushScreen is defined as function (url, id, params)
When reloadScreen() is called, will it include the params that was passed to pushScreen(), or at least provide the ability to override the said params
reloadScreen( [params] ) // where [params] is optional. If not passed, use the params previously passed to pushScreen
It would pass the exact same parameters that were passed in from the initial pushScreen() call
This is how we've done it.
var numItems = bb.screens.length;
// get the item that is displayed on screen
var display = bb.screens[numItems-1];
// push the displayed screen again
bb.pushScreen(display.url, display.id, display.params);
// remove the previous screen element from the DOM. This sticks around on the DOM for some reason
// Remove the last but previus screen from the display stack
Closing this issue in favor of the consolidated feature for screen management issue #616. There are lots of different threads around screen management. Looking to consolidate all the feedback into one main requirement. I'll mark this as a duplicate.