default

external fun default(): Promise<Menu>(source)

Create the default application menu, the same one Tauri installs when no menu is configured.

It contains an Edit submenu (undo, redo, cut, copy, paste, select all), a Window submenu (minimize, maximize, close window) and a Help submenu, plus:

  • macOS: an application submenu named after your app (about, services, hide, hide others, quit) and a View submenu with the fullscreen item.

  • Windows: a File submenu with close window and quit; the about item lives in Help.

  • Linux: no File submenu; the about item lives in Help.

Useful as a starting point you then extend with {@linkcode Menu.append}, {@linkcode Menu.insert} or {@linkcode Menu.prepend}.