Function zng_wgt_text::txt_overflow_align

source ยท
pub fn txt_overflow_align(
    child: impl UiNode,
    mode: impl IntoVar<Align>,
) -> impl UiNode
Expand description

P Alignment of text inside available space when the text overflows.

Note that the Text! widget only implements this for text inside each instance in isolation, multiple text instances in an inline row will not all align together. Also note that txt_overflow truncation only applies to the end of the text after it is aligned, so unless this is Align::TOP_START (default) the start of the text maybe still be clipped after truncation.

Sets the TEXT_OVERFLOW_ALIGN_VAR.