Skip to main content

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

PropertyDescriptionValuesDefault
backgroundLoads a form by its form ID and shows it as the background widget revealed behind the child during a swipe.StringNot set
thresholdThe child must be swiped at least this fraction of the way in the set direction to count as dismissed.NumberNot set (0.3 applies when not set)
dismissDirectionSets the directions the child can be dismissed in by swiping. Only those directions count as a dismissal.vertical, horizontal, endToStart, startToEnd, up, down, noneNot set (horizontal applies when not set)

Events

PropertyDescriptionValuesDefault
onDismissedCalled when the child is swiped in the set direction and dismissed. The value argument carries the dismissed direction as a string.EventNot set