Skip to main content

form

Function form 

Source
pub fn form<C>(sections: C) -> AnyPiece
where C: PieceSeq + 'static,
Expand description

A settings-style form: a vertical run of sections whose labeled rows share one label column across the WHOLE form.

form((
    section((
        labeled(tr("volume"), slider(volume)),
        labeled(tr("enabled"), toggle(enabled)),
    ))
    .title(tr("sound")),
    section((labeled(tr("name"), text_field(name)),)),
))
Day API ↩ Guides· daybrite.dev