Answers for "ion select active by button"

1

ion select active by button

<ion-select [(ngModel)]="choices" multiple="true" #mySelect>
     <ion-option>Appliances</ion-option>
     ....
</ion-select>
<button ion-button (click)="openSelect()">Open</button>
....
@ViewChild('mySelect') selectRef: Select;
constructor(public navCtrl: NavController,public events: Events) {}
openSelect()
{
	this.selectRef.open();
}
Posted by: Guest on April-13-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language