pub fn on_single_click(
child: impl UiNode,
handler: impl WidgetHandler<ClickArgs>,
) -> impl UiNode
Expand description
P
On widget click with the primary button, excluding double/triple clicks and the widget is enabled.
This raises only if the click is primary and the click count is one. Use
on_any_single_click
to handle single clicks from any button.
§Preview
You can preview this event using on_pre_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.