Disabling ion-item-sliding

Is there any way to disable swiping on some of the ion-item, when some condition is met?

2 Likes

Hum. Might be worth opening an issue for that functionality on the GitHub repo.

Have you tried listening on the ionDrag and/or IonSwipe events then forcing a close event?

Problem is, that i need to disable swiping only at some of the items in the list. I use this in my app, as list of my records. These records can be edited and deleted, but only if they hasnt been sent to the central.If they do the cannot be edited or deleted.

it seems it can be solved with *ngIf on ion-item-options element

6 Likes

Yes, thanks a lot, that works fine!.