So if I understand you correct, you have a sliding item. If you slide it to the left side you want to show something inside the initial item? Because you also have ion-item-options to display an action button the side of sliding items.
aah okay. But that could be solved easier then catching the entire event I suppose. Just add the icons in place inside your ion-item. Then hide them through css.
If you look at the HTML of the opened sliding-item, you notice these specific classes: item-wrapper active-slide active-options-right
So, on the top level you have active-options-right (if sliding-item is opened on the right side), and active-options-left (if sliding-item is opened on the left side). Just change the display property inside the item for the corresponding icon.
If you don’t want to use options but just detect if an item is sliding at all, you could use the classes active-swipe-left and active-swipe-right.
I already tried this and this does not work because it doesn’t return 0. In the end it return 0.2, 0,001 and etc, but not 0. So after first drag it > 0
Also using this will change icons to all the list. Not to the specific item.
This is all stuff unrelated to angular, basic javascript. Just pass the index of the item to toggle it on the specific item if needed so. Also, I just tried it out with a small example and works exactly as expected. If I swipe to one side, the icon get’s toggled. If I swipe to the other side, the icon get’s toggled again. If you want to do this for the specific item just pass the item’s index in the function as well and use it in your advantage (look index on ngfor up over here: link.