Skip to content

Commit

Permalink
finish dropdown module
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmoulton committed Nov 1, 2024
1 parent 945f404 commit 3e0d093
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 78 deletions.
9 changes: 3 additions & 6 deletions examples/widget-gallery/src/dropdown.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use dropdown::Dropdown;
use strum::IntoEnumIterator;

use floem::{
reactive::{create_effect, RwSignal, SignalGet},
views::{dropdown::Dropdown, Decorators},
IntoView,
};
use floem::{prelude::*, reactive::create_effect};

use crate::form::{self, form_item};

Expand Down Expand Up @@ -32,7 +29,7 @@ pub fn dropdown_view() -> impl IntoView {

form::form({
(form_item("Dropdown".to_string(), 120.0, move || {
Dropdown::basic_rw(dropdown_active_item, Values::iter()).keyboard_navigatable()
Dropdown::new_rw(dropdown_active_item, Values::iter())
}),)
})
}
Loading

0 comments on commit 3e0d093

Please sign in to comment.