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!