hello World,
i have a Div inside let’s say an array of 3 items, each has an ion item sliding delete function at slidingItem.open(‘end’);
i like to click the text "EDIT , and all the 3 items sliding will slide open together.
HTML side :
<ion-item-sliding (ionDrag)=“isSlided()” #slidingItem lines=“none” *ngFor=“let item of cart”>
<ion-item-option color=“danger” (click)=“removeCartItem (item)”>
</ion-item-sliding>
TS side
share(slidingItem: IonItemSliding) {
slidingItem.open(‘end’);
}
i tried to foreach IonItemSliding, but it says forEach does not exist of type IonItemSliding
and i tried to foreach Cart to include inside the ionitemsliding but it does not working.
share(slidingItem: IonItemSliding) {
this.cart.forEach(element => {
if(element){
slidingItem.open('end');
}
});
}
where am i missing out? i humbly seeking guidance from Forum
thank you