pub fn on_window_close(
child: impl UiNode,
handler: impl WidgetHandler<WindowCloseArgs>,
) -> impl UiNode
Expand description
P
On window closed.
See WINDOW_CLOSE_EVENT
for more details of when this event notifies.
§Preview
You can preview this event using on_pre_window_close
.
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.