mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 04:59:38 +08:00

* docs: update changelog * feat: update website config * feat(website): add formatting configuration * docs: fix image resource paths and format documents * feat(website): update community guide page Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
26 lines
540 B
Plaintext
26 lines
540 B
Plaintext
---
|
|
sidebar_position: 6
|
|
---
|
|
|
|
# Menu
|
|
|
|
## Overview
|
|
|
|
These methods are related to the application menu.
|
|
|
|
:::info Javascript
|
|
Menu is currently unsupported in the JS runtime.
|
|
:::
|
|
|
|
### MenuSetApplicationMenu
|
|
|
|
Go Signature: `MenuSetApplicationMenu(ctx context.Context, menu *menu.Menu)`
|
|
|
|
Sets the application menu to the given [menu](../menus.mdx) .
|
|
|
|
### MenuUpdateApplicationMenu
|
|
|
|
Go Signature: `MenuUpdateApplicationMenu(ctx context.Context)`
|
|
|
|
Updates the application menu, picking up any changes to the menu passed to `MenuSetApplicationMenu`.
|