Using Framework7 v5, I add a toolbar after the page load. The toolbar doesn’t respond to click events, so I guess it’s not initialized from the beginning. How can I initialize lazily?
What is exactly doesn’t work? Basic toolbar doesn’t require any initialization
the active item(.tab-link-active) is not changing and the tab link highlight(<span class=“tab-link-highlight” style=“width: 72px; transform: translate3d(0px, 0px, 0px);”></span>) is not made.
So it is a Tabbar, for tab highlight you need to init it with app.toolbar.setHighlight
https://framework7.io/docs/toolbar-tabbar.html#toolbar-app-methods
But changing of tab-link-active
class is related on tabs, if you don’t have relatetd tab, then it won’t change