Module: dialog

Methods

(inner) confirmYes(title, message, callbackopt, buttonTitleopt) → {Ti.UI.AlertDialog}

Create and show a confirm dialog with *Cancel* and *Yes* button.
Parameters:
Name Type Attributes Description
title String The title
message String The message
callback function <optional>
The callback to invoke when clicking *Yes*.
buttonTitle String <optional>
Alternative title for *Yes*.
Source:
Returns:
Type
Ti.UI.AlertDialog

(inner) dialogAlert(title, message, callbackopt, extopt) → {Ti.UI.AlertDialog}

Create and show an Alert Dialog
Parameters:
Name Type Attributes Description
title String The title
message String The message
callback function <optional>
The callback to invokie when clicking **OK**
ext Object <optional>
Extends the `AlertDialog`
Source:
Returns:
Type
Ti.UI.AlertDialog

(inner) dialogCheckbox(titleopt, messageopt, optionsopt, valuesopt, dictopt, extopt) → {Ti.UI.AlertDialog}

Create a checkbox prompt dialog. Android only.
Parameters:
Name Type Attributes Description
title String <optional>
The title.
message String <optional>
The message.
options Object <optional>
The options as an Array of primitive values or Literal objects with title/value. Title can be a primitive or a Literal object of Ti.UI.Label options.
values Object <optional>
A list of preselected values.
dict Object <optional>
Buttons as Dictionary.
ext Object <optional>
Extends the `AlertDialog`. The property androidView is ignored.
Source:
Returns:
Type
Ti.UI.AlertDialog

(inner) dialogConfirm(title, message, dict, ext) → {Ti.UI.AlertDialog}

Create and show a confirm dialog
Parameters:
Name Type Description
title String The title
message String The message
dict Object Buttons as Dictionary
ext Object Extends the `AlertDialog`
Source:
Returns:
Type
Ti.UI.AlertDialog

(inner) dialogOption(title, dict, extopt) → {Ti.UI.AlertDialog}

Create and show an Option Dialog
Parameters:
Name Type Attributes Description
title String The title
dict Object Buttons as Dictionary
ext Object <optional>
Extends the `AlertDialog`
Source:
Returns:
Type
Ti.UI.AlertDialog

(inner) dialogPrompt(title, message, dict, extopt) → {Ti.UI.AlertDialog}

Create a prompt dialog.
Parameters:
Name Type Attributes Description
title String The title
message String The message
dict Object Buttons as Dictionary
ext Object <optional>
Extends the `AlertDialog`
Source:
Returns:
Type
Ti.UI.AlertDialog