0
私はハイブリッドアプリを作成するために、温泉のUIを使用しています。Onsen: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-page"要素を "ons-navigator"に指定する必要があります。 –