Hello,
I’m using the ion-item-sliding and I would want to know if I could reproduce the drag action with a single click on an icon to display my button in ion-items-options.
This is my code :
<ion-item-sliding *ngFor="let tab of pres; let i = index" #slidingItem>
<ion-item>
<ion-icon (click)="activeDeleteSwipe(slidingItem, i)" item-left name="md-remove-circle"></ion-icon>
<ion-label>{{tab.name}}</ion-label>
</ion-item>
<ion-item-options side="right">
<button ion-button class="deleteButton" (click)="deletePresentation(tab.id)" color="danger"> Delete</button>
</ion-item-options>
</ion-item-sliding>
With the #slidingItem
I can do a slidingItem.moveSliding()
in my ts but I don’t understand how to make it work properly.