# Ion-item-sliding show ion-item-options programmatically swipes but doesn't show options

**URL:** <https://forum.ionicframework.com/t/ion-item-sliding-show-ion-item-options-programmatically-swipes-but-doesnt-show-options/161548>\
**Category:** Ionic Framework\
**Created:** [April 13, 2019, 11:35am UTC](https://forum.ionicframework.com/t/ion-item-sliding-show-ion-item-options-programmatically-swipes-but-doesnt-show-options/161548 "2019-04-13T11:35:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![max\_maeuschen](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@max\_maeuschen](https://forum.ionicframework.com/u/max_maeuschen)\
**Post date:** [April 13, 2019, 11:35am UTC](https://forum.ionicframework.com/t/ion-item-sliding-show-ion-item-options-programmatically-swipes-but-doesnt-show-options/161548/1 "2019-04-13T11:35:35Z")

</div>

As mentioned in the title, I’m trying to open in Ionic 4 my ion-item-options in an ion-list programmatically using the following function:

```
openItem(item: IonItemSliding) {
  itemSliding['el'].classList.add('item-sliding-active-slide');
  itemSliding['el'].classList.add('item-sliding-active-options-end');
  item['el'].style.transitionDuration = '.2s';
  item['el'].style.transform = 'translate3d(-183px,0,0)';
}

```

The problem is, that the item is sliding to the left, but the ion-item-options aren’t shown. If I’m swiping after this function by touching the options are shown. But they are moved to the left the same width as the item swiped.

Can anyone help me? I think the problem is, that there is any option of ion-item-sliding that isn’t set correct by my function. But I don’t know what it could be. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![max\_maeuschen](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@max\_maeuschen](https://forum.ionicframework.com/u/max_maeuschen)\
**Post date:** [April 13, 2019, 12:22pm UTC](https://forum.ionicframework.com/t/ion-item-sliding-show-ion-item-options-programmatically-swipes-but-doesnt-show-options/161548/2 "2019-04-13T12:22:59Z")

</div>

I found a solution on my own:

```
openItem(itemSliding: IonItemSliding, item: IonItem) {
  itemSliding['el'].classList.add('item-sliding-active-slide');
  itemSliding['el'].classList.add('item-sliding-active-options-end');
  item['el'].style.transitionDuration = '.2s';
  item['el'].style.transform = 'translate3d(-183px,0,0)';
}

```

The problem was, that in my first atempt I add the transformation to the IonItemSliding and therefore the IonItemOptions were included. Now only the IonItem is transformed and it works for me.
