cosmic/widget/dropdown/multi/
mod.rs

1// Copyright 2023 System76 <info@system76.com>
2// Copyright 2019 Héctor Ramón, Iced contributors
3// SPDX-License-Identifier: MPL-2.0 AND MIT
4
5mod model;
6pub use model::{List, Model, list, model};
7
8pub mod menu;
9pub use menu::Menu;
10
11mod widget;
12pub use widget::{Catalog, Dropdown, Style};
13
14pub fn dropdown<'a, S: AsRef<str>, Message: 'a, Item: Clone + PartialEq + 'static>(
15    model: &'a Model<S, Item>,
16    on_selected: impl Fn(Item) -> Message + 'a,
17) -> Dropdown<'a, S, Message, Item> {
18    Dropdown::new(model, on_selected)
19}