mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
confirm implemented for ios
This commit is contained in:
41
ui/dialogs/dialogs.d.ts
vendored
41
ui/dialogs/dialogs.d.ts
vendored
@@ -13,10 +13,16 @@
|
||||
function alert(options: AlertOptions): promises.Promise<any>;
|
||||
|
||||
/**
|
||||
* The confirm() method displays a dialog box with a specified message, along with an OK and a Cancel button.
|
||||
* The confirm() method displays a dialog box with a specified message.
|
||||
* @param message Specifies the text to display in the confirm box.
|
||||
*/
|
||||
function confirm(message: string): void;
|
||||
function confirm(message: string): promises.Promise<boolean>;
|
||||
|
||||
/**
|
||||
* The confirm() method displays a dialog box with a specified message.
|
||||
* @param options Specifies the options for the confirm box.
|
||||
*/
|
||||
function confirm(options: ConfirmOptions): promises.Promise<boolean>;
|
||||
|
||||
/**
|
||||
* The prompt() method displays a dialog box that prompts the visitor for input.
|
||||
@@ -35,13 +41,38 @@
|
||||
message: string;
|
||||
|
||||
/**
|
||||
* Gets or sets the alert message.
|
||||
* Gets or sets the alert title.
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* Gets or sets the request headers in JSON format.
|
||||
* Gets or sets the button name.
|
||||
*/
|
||||
buttonName?: any;
|
||||
buttonName?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides options for the alert.
|
||||
*/
|
||||
interface ConfirmOptions {
|
||||
/**
|
||||
* Gets or sets the alert message.
|
||||
*/
|
||||
message: string;
|
||||
|
||||
/**
|
||||
* Gets or sets the alert title.
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* Gets or sets the OK button name.
|
||||
*/
|
||||
okButtonName?: string;
|
||||
|
||||
/**
|
||||
* Gets or sets the Cancel button name.
|
||||
*/
|
||||
cancelButtonName?: string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user