[Feature Request] Programmatically slide an ion-item-sliding
See original GitHub issueShort description of the problem:
I would like to have a way to slide an item to open programmatically. It is not always intuitive to users the slide movement, but a button with an action that animates the slide could help to show how. To enable that, a public version of something like fireSwipeEventwould would help.
What behavior are you expecting?
I would like to have a method like slide()
or open()
that animate the ion-item-sliding
to reveal the ion-item-options
of that item.
Which Ionic Version? 2.x
Issue Analytics
- State:
- Created 7 years ago
- Reactions:15
- Comments:14 (4 by maintainers)
Top Results From Across the Web
[Feature Request] Programmatically slide an ion-item-sliding
I would like to have a way to slide an item to open programmatically. It is not always intuitive to users the slide...
Read more >Click to slide open ion-item-sliding instead of swiping - ionic-v3
It looks like, when the slide options are opened, you are not clicking on the ion-item anymore. You are clicking ion-item-options . So...
Read more >How to programatically open the ion-option-buttons on ion-items
I want to programmatically (e.g click of a button), open up the option menu on all the items. Same effect as if the...
Read more >Create a Sliding Item Animation with a Directive in Ionic 2 & 3
We use the active-slide and active-options-right classes to make the options behind the sliding item visible, and then (after 2 seconds) we ...
Read more >Building a slideshow with Ionic Slides API - Mastering Ionic
We then set up some button related properties which we'll use to manage navigation for the Ion Slides component; Our slideConfig object simply ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For anyone looking to do this I found a way that is working quite well for me. It is behaving the same as the default drag method. Code is below. The HTML has extraneous markup but this has allowed me to put a more icon at the end of each item which is the click handler to programmatically open the item.
This is a pretty common UX scenario. Often times users will not know what is a slide-able item and it helps to animate the process the first time the user interacts with the view.