Skip to main content
← rust.krizaka.comkrizaka.com

set_menu

Function set_menu 

Source
pub fn set_menu<R: Runtime>(
    app: &AppHandle<R>,
    spec: &MenuSpec,
) -> Result<(), CommandError>
Expand description

Sets the menu bar from Rust, for an app whose page cannot send it (a hosted app): the same checks as the command.