In the Gmail mobile app, swipe left or right on any item on the email list helps archive the email. Similar kind of swipe gestures support is provided on List Widget in WaveMaker.
Setting Swipe Gestures for a List
For a Mobile app, the List Widget has a “Template View” property.
- This property contains ListTemplate, LeftActionTemplate, and RightActionTemplate
- The default value is set to the ListTemplate
If LeftActionTemplate (or RightActionTemplate) is selected then a list action template view will be added on the list with Position set to left (or right).
Add Button property can be used to add buttons on these action templates, to which events can be bound and styles applied.
On swiping list item, from right to left, right action template will be rendered. Similarly, on swiping from left to right, the left action template will be rendered. All the buttons will be rendered proportionately.
When the fullswipe property on list action template is enabled and the last button is swiped more the than half of the list item width then last button action (i.e. onTap event) will be triggered by default.
Mobile Gesture Support