Saturday, June 9, 2018

Full swipe on list for ionic 2 | ionic 3 | ionic 4

Please use below code for HTML file :


<ion-list>
<ion-item-sliding #item>
<ion-item>
Item
</ion-item>
<ion-item-options side=”right” (ionSwipe)=”logSwipe($event)”>
<button ion-button (click)=”archive(item)”>
<ion-icon name=”archive”></ion-icon>
Archive
</button>
</ion-item-options>
</ion-item-sliding>
</ion-list>


Use below code for TS file :

logSwipe(e)
{
console.log(e);
}


1 comment: