confirm implemented for ios

This commit is contained in:
Vladimir Enchev
2014-06-03 15:38:19 +03:00
parent 8440509a48
commit d2355b556a
2 changed files with 89 additions and 20 deletions

View File

@@ -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;
}
}