setAsWindowMenu

fun setAsWindowMenu(window: Window = definedExternally): ERROR CLASS: Symbol not found for js.promise.Promise<tauri/apps/api/menu/Menu?>(source)

Sets the window menu and returns the previous one.

Platform-specific:

  • macOS: Unsupported. The menu on macOS is app-wide and not specific to one window, if you need to set it, use {@linkcode Menu.setAsAppMenu} instead.