update wml events to be parseable (#2561)

* update wml events to be parseable

* [v3] Rename `CustomEvent` to `WailsEvent` to prevent clashing with the standard JS `CustomEvent` object

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
Travis McLane
2023-04-11 18:28:06 +10:00
committed by GitHub
co-authored by Lea Anthony
parent 9574bfc054
commit a7bf359930
23 changed files with 146 additions and 101 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ func main() {
URL: "/",
})
app.Events.On("clicked", func(_ *application.CustomEvent) {
app.Events.On("clicked", func(_ *application.WailsEvent) {
println("clicked")
})