DialogButtonOptions changed to DialogButtonsOptions

This commit is contained in:
Vladimir Enchev
2014-06-09 14:28:15 +03:00
parent 63768427ba
commit 81177e1829
3 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ function createAlertDialog(message: string, options: dialogs.DialogOptions): and
return alert; return alert;
} }
function addButtonsToAlertDialog(alert: android.app.AlertDialog.Builder, options: dialogs.DialogButtonOptions, function addButtonsToAlertDialog(alert: android.app.AlertDialog.Builder, options: dialogs.DialogButtonsOptions,
okCallback: Function, cancelCallback?: Function, neutralCallback?: Function): void { okCallback: Function, cancelCallback?: Function, neutralCallback?: Function): void {
if (options.okButtonText) { if (options.okButtonText) {

View File

@@ -14,14 +14,14 @@
* @param message Specifies the text to display in the confirm box. * @param message Specifies the text to display in the confirm box.
* @param options Specifies the options for the confirm box. Optional. * @param options Specifies the options for the confirm box. Optional.
*/ */
function confirm(message: string, options?: DialogButtonOptions): promises.Promise<boolean>; function confirm(message: string, options?: DialogButtonsOptions): promises.Promise<boolean>;
/** /**
* The prompt() method displays a dialog box that prompts the visitor for input. * The prompt() method displays a dialog box that prompts the visitor for input.
* @param message The text to display in the dialog box. * @param message The text to display in the dialog box.
* @param options The options for the dialog box. Optional. * @param options The options for the dialog box. Optional.
*/ */
function prompt(message: string, defaultText?: string, options?: DialogButtonOptions): promises.Promise<string>; function prompt(message: string, defaultText?: string, options?: DialogButtonsOptions): promises.Promise<string>;
/** /**
* Provides options for the dialog. * Provides options for the dialog.
@@ -46,7 +46,7 @@
/** /**
* Provides options for the confirm. * Provides options for the confirm.
*/ */
interface DialogButtonOptions extends AlertOptions { interface DialogButtonsOptions extends AlertOptions {
/** /**
* Gets or sets the Cancel button text. * Gets or sets the Cancel button text.
*/ */

View File

@@ -32,7 +32,7 @@ function createDelegate(callback) {
return new delegateType; return new delegateType;
} }
function addButtonsToAlertDialog(alert: UIKit.UIAlertView, options: dialogs.DialogButtonOptions): void { function addButtonsToAlertDialog(alert: UIKit.UIAlertView, options: dialogs.DialogButtonsOptions): void {
if (!options) if (!options)
return; return;