Explorar o código

#445 add documentation

Falko Schindler %!s(int64=2) %!d(string=hai) anos
pai
achega
d84a7632fe
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      website/reference.py

+ 1 - 0
website/reference.py

@@ -868,6 +868,7 @@ You can register coroutines or functions to be called for the following events:
 - `app.on_shutdown`: called when NiceGUI is shut down or restarted
 - `app.on_connect`: called for each client which connects (optional argument: nicegui.Client)
 - `app.on_disconnect`: called for each client which disconnects (optional argument: nicegui.Client)
+- `app.on_exception`: called when an exception occurs (optional argument: exception)
 
 When NiceGUI is shut down or restarted, all tasks still in execution will be automatically canceled.
 ''', menu)