2022-08-27 20:17:15 +10:00
|
|
|
---
|
|
|
|
|
sidebar_position: 6
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# Menu
|
|
|
|
|
|
|
|
|
|
These methods are related to the application menu.
|
|
|
|
|
|
2022-12-30 07:38:22 +11:00
|
|
|
:::info JavaScript
|
2022-09-18 11:00:39 +10:00
|
|
|
|
2022-08-27 20:17:15 +10:00
|
|
|
Menu is currently unsupported in the JS runtime.
|
2022-09-18 11:00:39 +10:00
|
|
|
|
2022-08-27 20:17:15 +10:00
|
|
|
:::
|
|
|
|
|
|
|
|
|
|
### MenuSetApplicationMenu
|
|
|
|
|
|
|
|
|
|
Sets the application menu to the given [menu](../menus.mdx).
|
|
|
|
|
|
|
|
|
|
Go: `MenuSetApplicationMenu(ctx context.Context, menu *menu.Menu)`
|
|
|
|
|
|
|
|
|
|
### MenuUpdateApplicationMenu
|
|
|
|
|
|
|
|
|
|
Updates the application menu, picking up any changes to the menu passed to `MenuSetApplicationMenu`.
|
|
|
|
|
|
|
|
|
|
Go: `MenuUpdateApplicationMenu(ctx context.Context)`
|