Explorar o código

Notify element

- Adds close button to the example
Christoph Trappe %!s(int64=3) %!d(string=hai) anos
pai
achega
d6cb8b9fdb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -300,7 +300,7 @@ with example(ui.menu):
 
 with example(ui.notify):
 
-    notification = ui.notify(message='Notification')
+    notification = ui.notify(message='Notification', close_button='Close')
     ui.button('Get notification', on_click=lambda: notification.notify(True), after=lambda: notification.notify(False))
 
 lifecycle = '''### Lifecycle