瀏覽代碼

Notify element

- Adds close button to the example
Christoph Trappe 3 年之前
父節點
當前提交
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