This commit is contained in:
Ashley Wulber 2025-02-28 12:06:24 -05:00
parent 1fe7f1dcda
commit 9d68241c6d
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
58 changed files with 173 additions and 183 deletions

View file

@ -14,13 +14,12 @@ pub use widget::*;
/// Displays a list of options in a popover menu on select.
pub fn dropdown<
'a,
S: AsRef<str> + std::clone::Clone + Send + Sync + 'static,
Message: 'static + Clone,
>(
selections: &'a [S],
selections: &[S],
selected: Option<usize>,
on_selected: impl Fn(usize) -> Message + Send + Sync + 'static,
) -> Dropdown<'a, S, Message> {
) -> Dropdown<'_, S, Message> {
Dropdown::new(selections, selected, on_selected)
}