pub fn menu_widget<S: AsRef<str> + Send + Sync + Clone + 'static, Message: 'static + Clone>(
bounds: Rectangle,
state: &State,
gap: f32,
padding: Padding,
text_size: f32,
selections: Cow<'static, [S]>,
icons: Cow<'static, [Handle]>,
selected_option: Option<usize>,
on_selected: Arc<dyn Fn(usize) -> Message + Send + Sync + 'static>,
close_on_selected: Option<Message>,
) -> Element<'static, Message>Available on crate feature
winit and crate feature wayland and Linux only.Expand description
Returns the current menu widget of a Dropdown.