How to implement swiping ion-items in Ionic without clicking?


I am trying to implement an ion-list with ion-items that are swipable but don’t have to be clicked on the side to trigger an event.

It should work like like the default contacts app on Samsung phones, where you can either swipe left to call or right to send a SMS.

The list in the parent page looks like this:

<ion-list *ngFor="let person of persons | filter:searchTerm">
   <app-person-entry [person]="person" (click)="openModal(person)"></app-person-entry>

The person-entry component looks like this:

  <ion-avatar slot="start">
    <img src={{person.icon}}>
    <div class="container">
    <div class="container">


you can use ion-item-sliding.

    <ion-item-group #myItemsId>
      <ion-item-sliding (ionSwipe)="swipeEvent($event, myItemsId)">
        <ion-item-options side="start">

          <ion-label>Item Options</ion-label>

        <ion-item-options side="end">



swipeEvent($event, item) {
    if ($event.detail.side == 'start') {
      console.log('call now');
    } else {
      console.log('SMS now');

  closeAllItems(item) {
    let a = => {

Answered By – Najam Us Saqib

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published