0
我使用onsen ui來創建混合應用程序。溫泉:如何在ons-tabbar上使用ons-splitter?
我只需要知道是否有可能使用ons-splitter
與ons-tabbar
在同一時間,因爲我根本找不到任何這方面的參考。
當我在ons-tabbar上使用ons-splitter時,我的ons-splitter停止工作,但是當我從我的頁面中刪除ons-tabbar時,所有事情都再次開始工作。
這是我的代碼:
<ons-splitter >
<ons-splitter-side id="menu" side="right" width="220px" collapse swipeable>
<ons-page>
<ons-list>
<ons-list-item onclick="fn.load('home.html')" tappable>
Home
</ons-list-item>
<ons-list-item onclick="fn.load('settings.html')" tappable>
settings
</ons-list-item>
<ons-list-item onclick="fn.load('about.html')" tappable>
About
</ons-list-item>
</ons-list>
</ons-page>
</ons-splitter-side>
<ons-splitter-content>
<ons-navigator id="navi" page="home.html"></ons-navigator>
</ons-splitter-content>
</ons-splitter>
<ons-tabbar id="menu2" position="bottom">
<ons-tab page="home.html" label="Search For Personal Trainers" icon="search-plus" onclick="fn.load('home.html')" tappable disabled></ons-tab>
</ons-tabbar>
任何幫助,將不勝感激。
你錯過了<插件模板ID =「splitter.html」>後。否則會出現錯誤:錯誤:您必須向「ons-navigator」提供「ons-page」元素。 –