accept
Kehrt zurück, wenn der Dialog akzeptiert wurde.
Verwendung
await dialog.accept(promptText)
Parameter
Name | Type | Details |
---|---|---|
promptText optional | string | Ein Text, der in die Eingabeaufforderung eingegeben werden soll. Hat keine Auswirkungen, wenn der Dialogtyp keine Eingabeaufforderung ist. |
Beispiel
dialogAccept.js
await dialog.accept();
await dialog.accept(promptText);