cosmic::widget

Function dropdown

source
pub fn dropdown<'a, S: AsRef<str>, Message: 'a>(
    selections: &'a [S],
    selected: Option<usize>,
    on_selected: impl Fn(usize) -> Message + 'a,
) -> Dropdown<'a, S, Message>
Expand description

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