mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
DialogButtonOptions changed to DialogButtonsOptions
This commit is contained in:
@@ -20,7 +20,7 @@ function createAlertDialog(message: string, options: dialogs.DialogOptions): and
|
||||
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 {
|
||||
|
||||
if (options.okButtonText) {
|
||||
|
||||
6
ui/dialogs/dialogs.d.ts
vendored
6
ui/dialogs/dialogs.d.ts
vendored
@@ -14,14 +14,14 @@
|
||||
* @param message Specifies the text to display in the confirm box.
|
||||
* @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.
|
||||
* @param message The text to display in the dialog box.
|
||||
* @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.
|
||||
@@ -46,7 +46,7 @@
|
||||
/**
|
||||
* Provides options for the confirm.
|
||||
*/
|
||||
interface DialogButtonOptions extends AlertOptions {
|
||||
interface DialogButtonsOptions extends AlertOptions {
|
||||
/**
|
||||
* Gets or sets the Cancel button text.
|
||||
*/
|
||||
|
||||
@@ -32,7 +32,7 @@ function createDelegate(callback) {
|
||||
return new delegateType;
|
||||
}
|
||||
|
||||
function addButtonsToAlertDialog(alert: UIKit.UIAlertView, options: dialogs.DialogButtonOptions): void {
|
||||
function addButtonsToAlertDialog(alert: UIKit.UIAlertView, options: dialogs.DialogButtonsOptions): void {
|
||||
if (!options)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user