PromptAction
The action to be taken when the prompt dialog is closed.
type PromptAction =
{ action: 'ok', value: string } |
'cancel' |
'show';
Types
{ action: 'ok', value: string }
Close the dialog as the “OK” button is clicked and the given value is provided.
'cancel'
Close the dialog as the “Cancel” button is clicked.
'show'
Show the standard JavaScript prompt dialog.