on_load_layout

Function on_load_layout 

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

P Image loaded and layout event.

This property calls handler every first layout after on_load.

§Handlers

This property accepts any Handler, including the async handlers. Use one of the handler macros, hn!, hn_once!, async_hn! or async_hn_once!, to declare a handler closure.

§Route

This property is not routed, it works only inside a widget that loads images. There is also no preview event.