Right now, the viewManager is thin and only responsible for calling Rivets to render views and swapping them in and out of the container div.
We could enhance it by having the viewManager keep track of a stack of divs that represent history. This would allow the user to go back inside the widget (just pop the last div off the stack).
We could also have the viewManager add some nice CSS animations to this pushing and popping to improve the UX. Views could slide from the left or right edge of the widget to give a sense of direction.
Please ignore the horribleness of this demo and imagine what could be 😄
Right now, the
viewManager
is thin and only responsible for calling Rivets to render views and swapping them in and out of the container div.We could enhance it by having the
viewManager
keep track of a stack of divs that represent history. This would allow the user to go back inside the widget (just pop the last div off the stack).We could also have the
viewManager
add some nice CSS animations to this pushing and popping to improve the UX. Views could slide from the left or right edge of the widget to give a sense of direction.Please ignore the horribleness of this demo and imagine what could be 😄