zng_wgt_text

Function direction

source
pub fn direction(
    child: impl UiNode,
    direction: impl IntoVar<LayoutDirection>,
) -> impl UiNode
Expand description

P Sets the layout direction used in the layout of the widget and descendants.

Note that the lang property already sets the direction, this property can be used to directly override the direction.

Sets the DIRECTION_VAR context var and the LayoutMetrics::direction.