Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

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

$
0
0

@max_maeuschen wrote:

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!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>