on_drop

Function on_drop 

Source
pub fn on_drop(
    child: impl IntoUiNode,
    handler: Box<dyn FnMut(&DropArgs) -> HandlerResult + Send>,
) -> UiNode
Expand description

P Dragging cursor dropped data in the widget area and the widget is enabled.

§Preview

You can preview this event using on_pre_drop. Otherwise the handler is only called after the widget content has a chance to stop propagation.

§Async

You can use async event handlers with this property.