[website] Add OnBeforeClose docs

This commit is contained in:
Lea\Anthony
2021-12-04 14:31:59 +11:00
parent ac803aa426
commit ffc0765a2f
2 changed files with 27 additions and 0 deletions
+2
View File
@@ -119,6 +119,8 @@ A standard Go context is passed to this method. This context is required when ca
a reference to in this method. Just before the application shuts down, the [OnShutdown](/docs/reference/options#OnShutdown) callback is called in the same way,
again with the context. There is also an [OnDomReady](/docs/reference/options#OnDomReady) callback for when the frontend
has completed loading all assets in `index.html` and is equivalent of the [`body onload`](https://www.w3schools.com/jsref/event_onload.asp) event in Javascript.
It is also possible to hook into the window close (or application quit) event by setting the
option [OnBeforeClose](/docs/reference/options#OnBeforeClose).
#### Method Binding