|
@@ -9,11 +9,11 @@ class Dialog(ValueElement):
|
|
|
def __init__(self, *, value: bool = False) -> None:
|
|
|
"""Dialog
|
|
|
|
|
|
- Creates a dialog.
|
|
|
- By default it is non-modal.
|
|
|
- To make it modal, set `.props('persistent')` on the dialog element.
|
|
|
+ Creates a modal dialog.
|
|
|
+ By default it is dismissible by clicking or pressing ESC.
|
|
|
+ To make it persistent, set `.props('persistent')` on the dialog element.
|
|
|
|
|
|
- :param value: whether the dialog is already opened (default: `False`)
|
|
|
+ :param value: whether the dialog should be opened on creation (default: `False`)
|
|
|
"""
|
|
|
super().__init__(tag='q-dialog', value=value, on_value_change=None)
|
|
|
self._result: Any = None
|