setAsWindowMenu

fun setAsWindowMenu(window: Window = definedExternally): Promise<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.