Ion button and searchbar in toolbar

Hi. I need help.
I’m creating a searchbar on top of a page. And i want to add a refresh button beside the searchbar. My problem is I cannot place the button beside the searchbar.


I want the button the be here:


This is my html code:

        <button ion-button item-right (click)="refreshData()">
        <ion-icon name="refresh"></ion-icon>
    placeholder="Search Names"

Please someone help me :frowning:

just add end in ion-button tag like below
 <ion-buttons end>

works like a charm man. thank you!