Functions
prompt
Call Signature
function prompt(message: string, defaultText?: string): Promise<PromptResult>;Defined in: ui/dialogs/index.d.ts:91
The prompt() method displays a dialog box that prompts the visitor for input.
Parameters
| Parameter | Type | Description |
|---|---|---|
message | string | The text to display in the dialog box. |
defaultText? | string | The default text to display in the input box. Optional. |
Returns
Promise<PromptResult>
Call Signature
function prompt(options: PromptOptions): Promise<PromptResult>;Defined in: ui/dialogs/index.d.ts:97
The prompt() method displays a dialog box that prompts the visitor for input.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | PromptOptions | The options for the dialog box. |
Returns
Promise<PromptResult>
- Previous
- profilingUptime
- Next
- PseudoClassHandler