I have a list of sliding-items. On some of them sliding should be enabled, one some not.
I could not find an elegant way to solve this problem.
Is there a way to “disable” swiping depending on a property/variable?
It would look something like this:
> <ion-list>
> <ion-item-sliding *ngFor="let item of items" [disableSwipe]="!item.canSwipe">
> <ion-item>...</ion-item>
> </ion-item-sliding>
> </ion-list>