Dismissible
Overview
A widget you can swipe away to delete or dismiss. For example, swipe a list item left or right to delete it.
Properties
| Property | Description | Values | Default |
|---|---|---|---|
background | Loads a form by its form ID and shows it as the background widget revealed behind the child during a swipe. | String | Not set |
threshold | The child must be swiped at least this fraction of the way in the set direction to count as dismissed. | Number | Not set (0.3 applies when not set) |
dismissDirection | Sets the directions the child can be dismissed in by swiping. Only those directions count as a dismissal. | vertical, horizontal, endToStart, startToEnd, up, down, none | Not set (horizontal applies when not set) |
Events
| Property | Description | Values | Default |
|---|---|---|---|
onDismissed | Called when the child is swiped in the set direction and dismissed. The value argument carries the dismissed direction as a string. | Event | Not set |