Skip to main content

row_field

Function row_field 

Source
pub fn row_field<'a, Message: 'a>(
    label: impl IntoFragment<'a>,
    control: impl Into<Element<'a, Message>>,
) -> Element<'a, Message>
Expand description

A label paired with its control, as a setting row.

The same row setting_row draws — label at the left end, control at the right, at least one row tall — so a page not yet built from striped groups still lines up with those that are. It is never striped, because it is not told its place in a list; it used to be a 2:3 split that put a wide gap between a label and its control.

Takes no FontScale of its own, as it never did; it reads the scale from the active theme instead, so its text scales like every row beside it rather than staying at 100%.