feat(widget): add dropdown::multi list widget
This commit is contained in:
parent
d6c8fbe268
commit
bb7c7ac52a
8 changed files with 1346 additions and 1 deletions
19
src/widget/dropdown/multi/mod.rs
Normal file
19
src/widget/dropdown/multi/mod.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// Copyright 2023 System76 <info@system76.com>
|
||||
// Copyright 2019 Héctor Ramón, Iced contributors
|
||||
// SPDX-License-Identifier: MPL-2.0 AND MIT
|
||||
|
||||
mod model;
|
||||
pub use model::{list, model, List, Model};
|
||||
|
||||
pub mod menu;
|
||||
pub use menu::Menu;
|
||||
|
||||
mod widget;
|
||||
pub use widget::{Appearance, Dropdown, StyleSheet};
|
||||
|
||||
pub fn dropdown<'a, S: AsRef<str>, Message: 'a, Item: Clone + PartialEq + 'static>(
|
||||
model: &'a Model<S, Item>,
|
||||
on_selected: impl Fn(Item) -> Message + 'a,
|
||||
) -> Dropdown<'a, S, Message, Item> {
|
||||
Dropdown::new(model, on_selected)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue