Navigation for sioux
npm install sioux-ui-navigation
var UINavigation = require'sioux-ui-navigation';// the first argument is in which the navigation will be appendedvar nav = documentquerySelector'.screen'isToolbarHidden: trueisBarHidden: falseinitWith: navElem;
stack contains and at the creation the
initWith property and
.push() method take an object, which has to contain:
A new elem will be added to the
stack and it will be displayed on screen.
The last elem of the
stack will be popped and then the previous elemnt will be displayed.
Chain it to the
pop method and when they finish the
callback argument will be executed.
var navObj =title: 'Test Title'content: someHTMLconsole.log'Completed!';;navigationpushnavObjthenconsole.log'Pushed!'popthenconsole.log'Popped!';