pub fn on_window_close_requested(
child: impl UiNode,
handler: impl WidgetHandler<WindowCloseRequestedArgs>,
) -> impl UiNode
Expand description
P
On window close requested.
Calling propagation().stop()
on this event cancels the window close.
§Preview
You can preview this event using on_pre_window_close_requested
.
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.