Function zng_wgt::z_index

source ยท
pub fn z_index(child: impl UiNode, index: impl IntoVar<ZIndex>) -> impl UiNode
Expand description

P Defines the render order of a widget in a layout panel.

When set the widget will still update and layout according to their logical position in the list but they will render according to the order defined by the ZIndex value.

An error is logged on init if the widget is not a direct child of a Z-sorting panel.