wails/website/docs/reference/runtime
NarciLee 4e8b705cda
fix: add missing EventsOffAll export to runtime templates (#4883)
* fix: add missing EventsOffAll export to runtime templates

The EventsOffAll function was implemented in the internal runtime
(desktop/events.js) and exported in the wrapper runtime files, but was
missing from the public runtime templates that are generated in user
projects. This caused a type mismatch where EventsOffAll was declared
in the TypeScript definition but the implementation was missing.

This commit adds the EventsOffAll export and type declaration to all
frontend framework templates:
- Common templates (generate/assets/common)
- React / React-TS
- Vue / Vue-TS
- Svelte / Svelte-TS
- Preact / Preact-TS
- Lit / Lit-TS
- Vanilla / Vanilla-TS

Fixes #4703

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* docs: add EventsOffAll to runtime events documentation

Added EventsOffAll function documentation to both English and Chinese
versions of the runtime events reference.

The function was already implemented in Go (pkg/runtime/events.go) and
JavaScript (internal/frontend/runtime/desktop/events.js), but was missing
from the public documentation.

Related to #4703

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* chore: add EventsOffAll fix to changelog

Added entry for the EventsOffAll fix to the Unreleased section
of the changelog.

Related to #4703

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* docs: translate EventsOffAll description to Chinese

Improved consistency in Chinese documentation by translating the
EventsOffAll description from English to Chinese, matching the
style of other event method descriptions.

Related to #4703

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

---------

Co-authored-by: cc <Zhuanz@MacBook-Pro.local>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2026-01-25 13:10:24 +11:00
..
_category_.json [v2] Docs update 2021-09-27 19:35:30 +10:00
browser.mdx feat: optimize documentation website (#1849) 2022-09-18 22:01:50 +10:00
clipboard.mdx Add common text clipboard support (#2228) 2023-01-05 16:41:07 +11:00
dialog.mdx docs: fix and sync documents (#2135) 2022-11-28 20:13:22 +11:00
draganddrop.mdx Fix Drag & Drop JS runtime (#3516) 2024-06-10 15:15:28 +10:00
events.mdx fix: add missing EventsOffAll export to runtime templates (#4883) 2026-01-25 13:10:24 +11:00
intro.mdx Add common text clipboard support (#2228) 2023-01-05 16:41:07 +11:00
log.mdx docs: fix and sync documents (#2135) 2022-11-28 20:13:22 +11:00
menu.mdx docs: fix and sync documents (#2135) 2022-11-28 20:13:22 +11:00
screen.mdx Update Screen docs 2023-08-04 08:18:34 +10:00
window.mdx Fix typos (#3628) 2024-08-20 19:22:43 +10:00