on_window_open

Function on_window_open 

Source
pub fn on_window_open(
    child: impl IntoUiNode,
    handler: Box<dyn FnMut(&WindowOpenArgs) -> HandlerResult + Send>,
) -> UiNode
Expand description

P On window opened.

This event notifies once per window, after the window content is inited.

§Preview

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