An example of using class:
dialog.accept([promptText])
promptText
<string> A text to enter in prompt. Does not cause any effects if the dialog’s is not prompt.- returns: <> Promise which resolves when the dialog has been accepted.
dialog.defaultValue()
- returns: <> If dialog is prompt, returns default prompt value. Otherwise, returns empty string.
dialog.dismiss()
- returns: <> Promise which resolves when the dialog has been dismissed.
dialog.message()
dialog.type()
- returns: <string> Dialog’s type, can be one of
alert
, ,confirm
or .