ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

Enable RadListView item swipe to execute an action upon "full" swipe #1168

Open tbozhikov opened 5 years ago

tbozhikov commented 5 years ago

Enable the RadListView to have execute an action after "full" swipe.

This could be achieved by (just rough ideas):

  1. Set in onSwipeCellStarted full width swipe allowing the item to be swiped fully:
    this.swipeLimits.left = this.mainView.getMeasuredWidth() 
  2. In onCellSwiping implement some logic to make the item animate/execute at certain swipe offset
  3. In onSwipeCellFinishing implement logic: if item action is not executed so far, set left to the width of the swipe action buttons (so that if a user just swipes a bit, the swipe actions are revealed)
VladimirAmiorkov commented 5 years ago

An example of this functionality is the default Mail app on iOS: mail app swipe action