Swipe-back to option buttons


#1

Hello All Of You,
I have ion-list with option buttons.
My scenario is when user swipe left to item in list other item list swipe back for each item.
I have provided image for question.

My Ionic info:
Cordova CLI: 6.1.1
Ionic Framework Version: 2.0.0-alpha.57
Ionic CLI Version: 2.0.0-beta.24
Ionic App Lib Version: 2.0.0-beta.14
ios-deploy version: Not installed
ios-sim version: 5.0.8
OS: Mac OS X Yosemite
Node Version: v5.10.1
Xcode version: Xcode 6.4 Build version 6E35b

How i solve this issue please help me…
Thank you !!


#2

Ionic only provides the possebility to hide all open items:
http://ionicframework.com/docs/api/service/$ionicListDelegate/#closeOptionButtons

so you have to take care of it on your own.

You want that there is always one item open at a time?

open item have inline styling like this:
transform: translate3d(-53px, 0px, 0px); transition: none;

you can remove this from all item, expect the current element. You have to be sure that the new item is really open (dragged), because there are some thresholds, when the item is closed and opened automatically


#4

Hey @bengtler thanks for reply i want same as default ionic set for option button, in my case here it will not working on both android and ios. Is there any solution for it?, Thanks in advance.


#5

Self question answer please refer below links




Thanks all you