Ionic:导航栏中的两个按钮

时间:2014-12-21 14:29:28

标签: ionic-framework

我正在使用此代码进行标题导航:

<ion-view title="Events" hide-back-button="true">
  <ion-nav-buttons side="left">
    <button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
  </ion-nav-buttons>
...
</ion view>

如何向右侧添加第二个按钮?

1 个答案:

答案 0 :(得分:8)

<ion-view title="Events" hide-back-button="true">

 <ion-nav-buttons side="left"> <!-- left -->
   <button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
 </ion-nav-buttons>

 <ion-nav-buttons side="right"> <!-- right -->
   <button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
 </ion-nav-buttons>

</ion view>