on_mouse_single_click

Function on_mouse_single_click 

Source
pub fn on_mouse_single_click(
    child: impl IntoUiNode,
    handler: Handler<MouseClickArgs>,
) -> UiNode
Expand description

P Mouse clicked on the widget with the primary button excluding repeat clicks and it is enabled.

§Preview

You can preview this event using on_pre_mouse_single_click. 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.