accept
Returns when the dialog has been accepted.
Usage
await dialog.accept(promptText)
Parameters
Name | Type | Details |
---|---|---|
promptText optional | string | A text to enter into prompt. Does not cause any effects if the dialog's type is not prompt. |
Example
dialogAccept.js
await dialog.accept();
await dialog.accept(promptText);