The Header features a dedicated Back button to support "drill down"
navigation. The buttons appear when you pass a callback function to the
backbutton
method.
ts.ui.Header.backbutton(function onclick() {
ts.ui.Notification.success('Go back!');
});
You should of course not forget to hook your navigation up to the browsers native Back button. If and when needed, you can of course also display a Forward button.
ts.ui.Header.forwardbutton(function onclick() {
ts.ui.Notification.success('Go forward!');
});
Once the navigation is completed, you can hide the buttons again by passing
null
as an argument.
ts.ui.Header.backbutton(null).forwardbutton(null);
Here' an overview of the Navigation methods.
If you find a bug or need a feature…