Hello! I’m trying to hide the page toolbar in the pageinit section when I load the page. Does not work. If I make a button on a page or I link to an event of any element - it works. How to be?
pageInit: function () {
app.toolbar.hide('.toolbar'); // not work
$$('#some_element').on('click', function() {
app.toolbar.hide('.toolbar'); // work
});
}
Page content is tabs, toolbar:
<div class="toolbar tabbar">
<div class="toolbar-inner">
<a href="#tab-1" class="tab-link tab-link-active">tab_name1</a>
<a href="#tab-2" class="tab-link">tab_name2</a>
<a href="#tab-3" class="tab-link">tab_name3</a>
</div>
</div>