Chris
Chris

Reputation: 107

Is there an option to swipe right for <ion-option-button> in ionic 1 framework

I'm using Ionic v1, and working on swipe left and right on < ion-list> items. I would like to know that is there any options to swipe right for < ion-option-button> in ionic 1 framework? Since the < ion-option-button> creates a button, that is visible when the item is swiped only to the left by the user.

When I ran a search, it said that swipe right was not yet implemented for ionic1.

Upvotes: 0

Views: 487

Answers (1)

Chris
Chris

Reputation: 107

Resolved: The tag < item-swipe-pane direction ="right"> allows us to swipe right, also we would need to modify css accordingly.

  <ion-list>
        <ion-item>
            <item-swipe-pane direction="right">
                <button class="button button-assertive swipe-btn">
                           Delete
                 </button>
            </item-swipe-pane>
            <item-swipe-pane direction="left">
                <button class="button button-positive swipe-btn">
                              Duplicate
              </button>
            </item-swipe-pane>
        </ion-item>
        </ion-list>

Swipe Right Direction

Swipe Left Direction

Upvotes: 0

Related Questions