Skip to main content

choice

Function choice 

Source
pub fn choice<T: PrefValue, M, L, LM>(
    pref: &'static Pref<T>,
    title: impl IntoText<M>,
    options: impl IntoIterator<Item = (T, L)>,
) -> Row
where L: IntoText<LM>,
Expand description

A one-of-N row: options pairs each value with its label. Menu by default; Row::segmented for a few short labels.