dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Declarative Menu Item Components

Open ealmloff opened this issue 2 years ago • 0 comments

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"),
            }
        }
    }
}

ealmloff avatar Aug 10 '23 00:08 ealmloff