pub fn popup_dropdown<'a, S: AsRef<str> + Clone + Send + Sync + 'static, Message: 'static + Clone, AppMessage: 'static + Clone>(
selections: &'a [S],
selected: Option<usize>,
on_selected: impl Fn(usize) -> Message + Send + Sync + 'static,
_parent_id: Id,
_on_surface_action: impl Fn(Action) -> Message + Send + Sync + 'static,
_map_action: impl Fn(Message) -> AppMessage + Send + Sync + 'static,
) -> Dropdown<'a, S, Message, AppMessage>
Expand description
Displays a list of options in a popover menu on select. AppMessage must be the App’s toplevel message.