externalDismissedModalDialog
Hierarchy
- ModalDialog
- DismissedModalDialog
Index
Constructors
Methods
Constructors
externalconstructor
Parameters
externaldialogMessage: string
Returns DismissedModalDialog
Methods
externalisPresent
Returns a promise that resolves to
true
when a modal dialog has been handled, so either accepted or dismissed. Returnsfalse
for dialogs that haven't been handled yet.Useful when a JavaScript modal dialog is generated after a delay, e.g. triggered by
setTimeout
.Returns Promise<boolean>
externalmessage
Returns the message of the last modal dialog handled, or rejects the promise with a
LogicError
when no modal dialogs have been observed yet.Returns Promise<string>
Message of the last handled dialog, or a
Promise
rejected with aLogicError
when no dialog has been handled yet.
externalstate
Returns
accepted
ordismissed
for dialogs that have been handled, orabsent
for those that haven't been handled yet.Returns string
DismissedModalDialog
represents aModalDialog
that has been dismissed viaModalDialog.dismissNext
.Learn more
ModalDialog