zng::drag_drop

Function on_drop

source
pub fn on_drop(
    child: impl UiNode,
    handler: impl WidgetHandler<DropArgs>,
) -> impl 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.