Skip to main content

row

Function row 

Source
pub fn row(
    label: impl Into<SharedString>,
    control: impl IntoElement,
) -> impl IntoElement
Expand description

label control on one line when both fit: the label theme::LABEL_W wide, the control the rest (at least theme::CONTROL_MIN_W). In a narrow panel the control drops under its label, full width. Nothing is clipped (a cut label names nothing): a long label wraps, a long value in a control ends in “…”.