-
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
feat(ion-sliding-item): Completely swipe item #6242
Comments
Examples of this would be the defunct Mailbox and current Spark apps, I assume. Let me piggyback on this one. I'd like to swipe an item completely to either side, yet keep the revealed content. The event would be fired either way, and you'd consume it by removing the item for your use case, while I'd use it to tally a vote. |
@dylanvdmerwe @PatrickMcD #6686 was merged, available in next release! |
@manucorporat The linked PR seems to add support for swiping the other direction, not completely swiping off. Do you have an example/documentation for how to make it swipe completely off? |
@wli you are right, you can not swipe completely but! you can subscribe to the new (ionSwipe) event, like this: Feel free to open a new issue if swiping completely is required for you. and please explain an use case, so we can implement and assign a priority better! |
Use case is so that you can remove items from a list without tapping an extra time. I don't need it urgently since I already implemented it myself, so I'll let someone else chime in if they need it in the framework itself. |
Feature Description
Currently there is
<ion-sliding-item>
which can be added around an<ion-item>
as described here.The idea is for an event to be added onto this item that is fired if the ion-item is scrolled completely away.
For example, to remove an item completely from the list the user would swipe the item completely off the list. The event would then fire to remove the item from the list. So if I had a list of emails, I don't have to swipe and then press the delete button. I could just completely swipe the ion-item out of the list.
Which Ionic Version? 2.x
Run
ionic info
from terminal/cmd prompt: (paste output below)Cordova CLI: 6.1.1
Ionic Framework Version: 2.0.0-beta.4-f23043ed
Ionic CLI Version: 2.0.0-beta.24
Ionic App Lib Version: 2.0.0-beta.14
OS:
Node Version: v5.10.1
The text was updated successfully, but these errors were encountered: