Skip to main content

app_menu

Function app_menu 

Source
pub fn app_menu(menus: Vec<MenuEntry>)
Expand description

Install the application menu — the native menu bar on desktop, the app-bar overflow on Android, the UIMenuBuilder main menu on iPadOS/Catalyst. Top-level entries are usually sub_menu(...)s (the menu-bar menus). Call at startup or whenever the menu changes; it replaces any previous app menu.

Labels resolve ONCE, in the install-time locale; an app whose language can change at runtime (a preferences language picker) should use app_menu_reactive instead.

Day API ↩ Guides· daybrite.dev