-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature(ion-item-sliding): Allow item also to swipe from left to right #5073
Comments
Do you think I can do a pull request with my answer? People keep asking me for my solution, but the way it was made it won't let people update ionic without loosing the feature. |
+1 for this feature. Both native iOS and android support both sides swiping for items. |
Did this code make it into beta? I would love to see this extended to the entire list instead of just the list-items like in Google Now. |
@thomastthai @masimakopoulos @pcagica #6686 |
Thank you for updating. How would I get the change locally before it is
|
Also, is the code adaptable to being able to swipe the entire list left or
|
Take into account RTL: #5035 (comment) |
@astec @thomastthai @masimakopoulos the two way sliding will arrive in beta9, it will support having two different sets of buttons at the same time (side left/right), right side will be the default one, so expect it to be back compatible. The animation below is 100% CSS, so you can customize it. <ion-item-sliding #item>
<ion-item>DOWNLOAD</ion-item>
<ion-item-options (ionSwipe)="download(item)">
<button primary (click)="archive(item)">
<ion-icon name="archive"></ion-icon>Archive
</button>
<button secondary swipeable (click)="download(item)">
<ion-icon name="download"></ion-icon>Download
</button>
</ion-item-options>
<ion-item-options side="left" (ionSwipe)="unread(item)">
<button secondary swipeable (click)="unread(item)">
<ion-icon name="ios-checkmark"></ion-icon>Unread
</button>
</ion-item-options>
</ion-item-sliding> |
@manucorporat, that's cool! |
#6686 was merged, available in next release! |
Thank you for the work you did.
|
@manucorporat way to go buddy! Keep up the amazing work guys! |
From @astec on November 1, 2015 2:46
I want to swipe my ionic list items to both side. (i.e left-right AND right-left). It work perfectly for right-left swipe but i am not able to swipe my list item left-righ (to see buttons on left side).
Here is an example workaround: http://stackoverflow.com/a/31816296/1975086
Copied from original issue: driftyco/ionic2#411
The text was updated successfully, but these errors were encountered: