NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration
Dig in

Defined in: ui/dialogs/index.d.ts:225

Provides options for the prompt dialog.

Extends ​

Properties ​

cancelable? ​

ts
optional cancelable?: boolean;

Defined in: ui/dialogs/index.d.ts:144

[Android only] Gets or sets if the dialog can be canceled by taping outside of the dialog.

Inherited from ​

ConfirmOptions.cancelable


cancelButtonText? ​

ts
optional cancelButtonText?: string;

Defined in: ui/dialogs/index.d.ts:214

Gets or sets the Cancel button text.

Inherited from ​

ConfirmOptions.cancelButtonText


capitalizationType? ​

ts
optional capitalizationType?: string;

Defined in: ui/dialogs/index.d.ts:239

Gets or sets the prompt capitalizationType (none, all, sentences, or words).


defaultText? ​

ts
optional defaultText?: string;

Defined in: ui/dialogs/index.d.ts:229

Gets or sets the default text to display in the input box.


inputType? ​

ts
optional inputType?: string;

Defined in: ui/dialogs/index.d.ts:234

Gets or sets the prompt input type (plain text, password, or email).


message? ​

ts
optional message?: string;

Defined in: ui/dialogs/index.d.ts:194

Gets or sets the dialog message.

Inherited from ​

ConfirmOptions.message


neutralButtonText? ​

ts
optional neutralButtonText?: string;

Defined in: ui/dialogs/index.d.ts:219

Gets or sets the neutral button text.

Inherited from ​

ConfirmOptions.neutralButtonText


okButtonText? ​

ts
optional okButtonText?: string;

Defined in: ui/dialogs/index.d.ts:204

Gets or sets the OK button text.

Inherited from ​

ConfirmOptions.okButtonText


theme? ​

ts
optional theme?: number;

Defined in: ui/dialogs/index.d.ts:149

[Android only] Sets the theme of the Dialog. Usable themes can be found: https://developer.android.com/reference/android/R.style

Inherited from ​

ConfirmOptions.theme


title? ​

ts
optional title?: string;

Defined in: ui/dialogs/index.d.ts:189

Gets or sets the dialog title.

Inherited from ​

ConfirmOptions.title