Function dropdown

Source
pub fn dropdown<'a, S: AsRef<str> + Clone + Send + Sync + 'static, Message: 'static + Clone>(
    selections: impl Into<Cow<'a, [S]>>,
    selected: Option<usize>,
    on_selected: impl Fn(usize) -> Message + Send + Sync + 'static,
) -> Dropdown<'a, S, Message, Message>
Expand description

Displays a list of options in a popover menu on select.