1
0
Эх сурвалжийг харах

Notify element

- Adds close button to the example
Christoph Trappe 3 жил өмнө
parent
commit
d6cb8b9fdb
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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