tauri/.changes/tauri-webview-events.md
Amr Bashir 16e550ec15
refactor(core): add webview events (#8844)
* refactor(core): add webview events

* license header

* clippy

* fix doctests

* more doctests

* fix JS `listen` with `EventTarget::Any`

* typo

* update module import

* clippy

* remove console.log

* fix api example

* fix documentation for emiTo [skip ci]

* actually add RunEvent::WebviewEvent

* update migration

* lint

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-16 08:07:39 -03:00

228 B

tauri
patch:feat

Add webview-specific events for multi-webview windows:

  • Add WebviewEvent enum
  • Add RunEvent::WebviewEvent variant.
  • Add Builder::on_webview_event and Webview::on_webview_event methods.