5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 02:01:01 +08:00

Update events.mdx

This commit is contained in:
Lea Anthony 2021-10-20 20:31:58 +11:00 committed by GitHub
parent 4a11f9bb20
commit bb25b3f42f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,8 +44,8 @@ This method sets up a listener for the given event name, but will only trigger a
### EventsEmit
Go Signature: `Events(ctx context.Context, eventName string, optionalData ...interface{})`
Go Signature: `EventsEmit(ctx context.Context, eventName string, optionalData ...interface{})`
JS Signature: `Events(ctx context, optionalData function(optionalData?: any))`
JS Signature: `EventsEmit(ctx context, optionalData function(optionalData?: any))`
This method emits the given event. Optional data may be passed with the event. This will trigger any event listeners.