1

So I would like to create a ion-select with multiple options but with one option that is exclusive. Example : enter image description here

In this image, if I select Nowhere the other options deselect themselves and if I select Head-front and Eyes the opposite applies : "Nowhere" deselect itself.

I looked into the ion-select doc but I couldn't find anything.

2
  • 1
    You will have to listen to the ionChange event and add your logic to select/deselect values there. Oct 15, 2021 at 9:38
  • as @PankajSati said you have to use ionChange event and use disable attributes on your <ion-select-options [disabled]="selectedId == nowhereId"> Oct 16, 2021 at 6:01

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.