pub fn dropdown<S: AsRef<str> + Clone + Send + Sync + 'static, Message: 'static + Clone>(
selections: &[S],
selected: Option<usize>,
on_selected: impl Fn(usize) -> Message + Send + Sync + 'static,
) -> Dropdown<'_, S, Message, Message>
Expand description
Displays a list of options in a popover menu on select.