How to ion-select in toolbar


#1

my toolbar code is as below

<ion-toolbar>
  
    <ion-segment [(ngModel)]="language">
        <ion-segment-button value="4">
          AR
        </ion-segment-button>
        <ion-segment-button value="2">
          BN
        </ion-segment-button>
    	<ion-segment-button value="3">
          EN
        </ion-segment-button>
      </ion-segment>
    </ion-toolbar>

That is working well. But when I add select menu, it is not working. I added before segment (2nd line). Can anybody help me ?


#2

Could you explain a bit more what you mean by selectMenu?


#3

dropdown list


#4

Ionic does not have a dropdown/popover menu though


#5

Hi, you can use ion-select like this (remove the ion-segment)

<ion-label>Language</ion-label>
<ion-select [(ngModel)]="language">
  <ion-option  value="4">AR</ion-option>
  <ion-option  value="2">BN</ion-option>
  <ion-option  value="3">EN</ion-option>
</ion-select>