ion select active by button

Solutions on MaxInterview for ion select active by button by the best coders in the world

showing results for - "ion select active by button"
Mia
13 Jul 2017
1<ion-select [(ngModel)]="choices" multiple="true" #mySelect>
2     <ion-option>Appliances</ion-option>
3     ....
4</ion-select>
5<button ion-button (click)="openSelect()">Open</button>
6....
7@ViewChild('mySelect') selectRef: Select;
8constructor(public navCtrl: NavController,public events: Events) {}
9openSelect()
10{
11	this.selectRef.open();
12}