Prechádzať zdrojové kódy

explain how to create modal dialog (see #132)

Rodja Trappe 2 rokov pred
rodič
commit
d2a08b99e1
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      nicegui/elements/dialog.py

+ 1 - 1
nicegui/elements/dialog.py

@@ -11,7 +11,7 @@ class Dialog(Group):
     def __init__(self, *, value: bool = False):
         """Dialog
 
-        Creates a modal dialog.
+        Creates a dialog. By default it is non-modal. To make it modal, set `.props('persistent')` on the dialog object. 
 
         :param value: whether the dialog is already opened (default: `False`)
         """