# Ion item in list, cancel / restore swipe after clicked

**URL:** <https://forum.ionicframework.com/t/ion-item-in-list-cancel-restore-swipe-after-clicked/28556>\
**Category:** ionic-v1\
**Created:** [July 17, 2015, 6:46am UTC](https://forum.ionicframework.com/t/ion-item-in-list-cancel-restore-swipe-after-clicked/28556 "2015-07-17T06:46:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![garry](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@garry](https://forum.ionicframework.com/u/garry)\
**Post date:** [July 17, 2015, 6:46am UTC](https://forum.ionicframework.com/t/ion-item-in-list-cancel-restore-swipe-after-clicked/28556/1 "2015-07-17T06:46:18Z")

</div>

Hi, all

Extent from the post here:

> **[Ion-option-button in list, toggle by icon click instead of swipe?](http://forum.ionicframework.com/t/ion-option-button-in-list-toggle-by-icon-click-instead-of-swipe/9703)**
>
> Hey all, I have a similair list with option buttons as in the example on http://ionicframework.com/docs/api/directive/ionList/ I would want to not only trigger the option buttons on swipe, but also on click of a part of the list item, for example...

Just wondering is there any way that I can do:

- Swipe to show the options button
- After the options button show, click the item (or any other items) will cancel the swipe effect ( Just like the same effect like Dave provided in above post)

This will give better user experience imo, like within a list:

swipe -\> options -\> click anywhere within list to cancel swipe -\> click the list item to call other function

**Some Suggestions**

In Dave’s solution, it add a `option-buttons` attribute to list item, watch it, then cancel the swipe effect on others click. So if swipe happened, need to click twice to cancel the swipe effect.

Currently the swipe directive from Ionic doesn’t give any attribute that can be watched, so it’s not able to watch the change after swiped. The only attribute I found is the `style attribute with <div class="item-content">` within the list item, don’t think this is a correct approach, even not in the big list.

Is is possible to provide a attribute within `<ion-item>`, which like `swiped = "boolean"` , therefore it can be watched to extend any custom action.

Hope I do explain it clear. Thanks for advice
