Delete Swipe gestures in ionic 3

前端 未结 1 567
孤独总比滥情好
孤独总比滥情好 2021-01-29 06:51

I want to create an ionic delete swipe gesture but it doesn\'t seem to work.

**This is my home page ( i called it myPage.html)**
    
      <         


        
1条回答
  •  执念已碎
    2021-01-29 07:29

    As per the docs, you need to put the ion-item inside ion-item-sliding component.

    Thus, the structure of your markup should be:

    
        
            
                {{item.title}}
            
            
                
            
        
    
    

    Refer here for the sample: https://stackblitz.com/edit/ionic-eofb82

    0 讨论(0)
提交回复
热议问题