dioxus
dioxus copied to clipboard
Declarative Menu Item Components
Specific Demand
You should be able to declare your desktop/mobile menu with components instead of using the config builder.
Implement Suggestion
You can use components with the desktop context to modify the menu and window:
render! {
Window {
title: "My Application",
Menu {
Item {
onclick: |_| println!("help clicked"),
}
}
}
}