Skip to main content

select

Function select 

Source
pub fn select<'a, T, Message>(
    options: impl Into<Cow<'a, [T]>>,
    selected: Option<T>,
) -> Select<'a, T, Message>
where T: ToString + PartialEq + Clone,
Available on crate feature select only.
Expand description

Creates a select over options, showing selected when it is set. Options are labelled with their Display text.