Skip to content
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

Closed
dylanvdmerwe opened this issue Apr 20, 2016 · 5 comments
Closed

feat(ion-sliding-item): Completely swipe item #6242

dylanvdmerwe opened this issue Apr 20, 2016 · 5 comments
Assignees

Comments

@dylanvdmerwe
Copy link
Contributor

dylanvdmerwe commented Apr 20, 2016

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

@WhatsThatItsPat
Copy link

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.

@manucorporat
Copy link
Contributor

@dylanvdmerwe @PatrickMcD #6686 was merged, available in next release!

@wli
Copy link
Contributor

wli commented Jun 8, 2016

@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?

@manucorporat
Copy link
Contributor

@wli you are right, you can not swipe completely but! you can subscribe to the new (ionSwipe) event, like this:
#5073 (comment)
^ more documentation will come before next beta is released

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!

@wli
Copy link
Contributor

wli commented Jun 8, 2016

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants