Ivas
Ivas

Reputation: 311

Disable Range Slider

I have a range slider that needs to be disabled. I was not able to find anything on the ionic docs. Any help would be appreciated. Thank you.

.html

<ion-item>
   <ion-range [(ngModel)]="singleValue" color="danger" pin="true" snaps="true" ></ion-range>
 </ion-item>

Upvotes: 1

Views: 1255

Answers (1)

Sajeetharan
Sajeetharan

Reputation: 222722

You can set disabled= true;

 <ion-range disabled="true" [(ngModel)]="singleValue" color="danger" pin="true" snaps="true" ></ion-range>

Upvotes: 1

Related Questions