zng::widget

Function on_show

source
pub fn on_show(
    child: impl UiNode,
    handler: impl WidgetHandler<VisibilityChangedArgs>,
) -> impl UiNode
Expand description

P Widget visibility changed to visible.

Note that widgets are already marked visible before the first render so this event does not fire on init.

§Preview

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