I’m trying to switch to a toolbar tab after the login authentication is done after loading my app. I’ve been trying to call:
app.toolbar.show(“view-stories”);
My initial layout had the tabs defined inside the toolbar. Looking at the documentation for routes it shows the tabbar defined separately from the tabs that are set to be routable. Below is my attempt to follow that documentation. I still cannot get the toolbar tab / view to switch after the login is completed.
The other effect is the toolbar is at the top of all views rather than at the bottom of the screen.
Any ideas?
<!-- Tabbar for switching views-tabs -->
<div class="toolbar tabbar tabbar-labels toolbar-bottom">
<div class="toolbar-inner">
<a href="#view-home" class="tab-link tab-link-active">
<i class="icon f7-icons ios-only">home</i>
<i class="icon f7-icons ios-only icon-ios-fill">home</i>
<i class="icon material-icons md-only">home</i>
<span class="tabbar-label">Home</span>
</a>
<a href="#view-stories" class="tab-link tab-link-active">
<i class="icon f7-icons ios-only">list_bullet</i>
<i class="icon f7-icons ios-only icon-ios-fill">list_bullet</i>
<i class="icon material-icons md-only">list</i>
<span class="tabbar-label">Stories</span>
</a>
<a href="#view-capture" class="tab-link">
<i class="icon f7-icons ios-only">plus_add</i>
<i class="icon f7-icons ios-only icon-ios-fill">plus_add_fill</i>
<i class="icon material-icons md-only">add_to_photos</i>
<span class="tabbar-label">Capture</span>
</a>
<a href="#view-profile" class="tab-link">
<i class="icon f7-icons ios-only">person</i>
<i class="icon f7-icons ios-only icon-ios-fill">person_fill</i>
<i class="icon material-icons md-only">person</i>
<span class="tabbar-label">Profile</span>
</a>
</div>
</div>
<!-- Views/Tabs container -->
<div class="views tabs tabs-routable">
<!-- Your main view/tab, should have "view-main" class. It also has "tab-active" class -->
<div id="view-home" class="view view-main view-init tab tab-active safe-areas">
<!-- Page, data-name contains page name which can be used in page callbacks -->
<div class="page" data-name="home">
</div>
</div>
<div id="view-stories" class="view tab safe-areas">
</div>
<div id="view-capture" class="view tab safe-areas">
</div>
<div id="view-profile" class="view tab safe-areas">
</div>
</div>