How can I add a button on toolbar for every page?


#1

I fallowing code I want to add a search Icon at the end of toolbar in front of menu

<ion-menu [content]="content">
    <ion-header>
      <ion-toolbar>
        <ion-title>Menu</ion-title>
      </ion-toolbar>
    </ion-header>
  
    <ion-content>
      <ion-list>
        <button menuClose ion-item *ngFor="let p of pages" (click)="openPage(p)">
          {{p.title}}
        </button>
      </ion-list>
    </ion-content>
  </ion-menu>

<ion-buttons end>
  <button ion-button icon-only>
    <ion-icon name="search"></ion-icon>
  </button>
</ion-buttons>
<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>

#2

can you share a screen of UI you need?


#3

something like :