Function form
Source pub fn form<C: PieceSeq + 'static>(sections: C) -> AnyPiece
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)),)),
))