Skip to content

Commit

Permalink
fix: use fully qualified syntax instead
Browse files Browse the repository at this point in the history
  • Loading branch information
bioinformatist committed May 7, 2024
1 parent f7ce213 commit a7ebfdc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo_markdown/docs/drawer/mod.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ let open = Callback::new(move |new_placement: DrawerPlacement| {

view! {
<ButtonGroup>
<Button on_click=Callback::new(move |_| open.call(DrawerPlacement::Top))>"Top"</Button>
<Button on_click=Callback::new(move |_| open.call(DrawerPlacement::Right))>"Right"</Button>
<Button on_click=Callback::new(move |_| open.call(DrawerPlacement::Bottom))>"Bottom"</Button>
<Button on_click=Callback::new(move |_| open.call(DrawerPlacement::Left))>"Left"</Button>
<Button on_click=Callback::new(move |_| leptos::Callable::call(&open, DrawerPlacement::Top))>"Top"</Button>
<Button on_click=Callback::new(move |_| leptos::Callable::call(&open, DrawerPlacement::Right))>"Right"</Button>
<Button on_click=Callback::new(move |_| leptos::Callable::call(&open, DrawerPlacement::Bottom))>"Bottom"</Button>
<Button on_click=Callback::new(move |_| leptos::Callable::call(&open, DrawerPlacement::Left))>"Left"</Button>
</ButtonGroup>
<Drawer title="Title" show placement>
"Hello"
Expand Down

0 comments on commit a7ebfdc

Please sign in to comment.