Skip to main content

swipe_action

Function swipe_action 

Source
pub fn swipe_action<M>(label: impl IntoText<M>) -> SwipeAction
Expand description

Build a swipe action with label (a literal, a res::str::… text, a signal or a closure; resolved in the current locale each time the offer is pulled). Chain destructive or tint for styling and action for the work; an action without a handler still reveals and dismisses, but does nothing.

Day API ↩ Guides· daybrite.dev