wails/website/docs/reference
Anton Gilgur cb3305a2fc
[v2] docs(menu): add imports and complete the example (#4727)
* [v2] docs(menu): add imports and complete the example

- the example was missing imports, which [confused a user](https://stackoverflow.com/q/79827619/3431180), particularly due to the `rt` import alias
  - plus there are a good number of imports too, which this makes explicit
- it also didn't mention that it built on top of the `NewApp` / `app.go` scaffold, so mention and link to that as well
  - it wasn't clear where `NewApp` came from without that
  - give this file the title `menu.go` for clarity / explicitness
- also handle the error at the end similar to [existing examples](4c464b3092/website/docs/guides/application-development.mdx (L54))

* add changelog entry per PR template

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-12-01 06:22:52 +11:00
..
runtime Fix typos (#3628) 2024-08-20 19:22:43 +10:00
_category_.json [v2] Docs update 2021-09-27 19:35:30 +10:00
cli.mdx feat: Make Vite server timeout configurable (#4374) 2025-07-11 21:08:37 +10:00
menus.mdx [v2] docs(menu): add imports and complete the example (#4727) 2025-12-01 06:22:52 +11:00
options.mdx [V2] Add origin verification for bindings (#4480) 2025-08-13 08:50:23 +10:00
project-config.mdx Add support for build tags to the wails project schema and update pro… (#4439) 2025-07-25 20:38:40 +10:00