Alloy.builtins.dialogs

A collection of utilities for generating dialog boxes. To use the dialogs builtin library, require it with the alloy root directory in your require call. For example:

var dialogs = require('alloy/dialogs'); dialogs.confirm({});

Defined By

Properties

Alloy.builtins.dialogs
buttonNames : Array

To be used as default buttonNames for confirm-method AlertDialog

To be used as default buttonNames for confirm-method AlertDialog

Alloy.builtins.dialogs
message : String

To be used as default message for confirm-method AlertDialog

To be used as default message for confirm-method AlertDialog

Alloy.builtins.dialogs
title : String

To be used as default title for confirm-method AlertDialog

To be used as default title for confirm-method AlertDialog

Defined By

Methods

Alloy.builtins.dialogs
( args )
Creates a confirmation dialog box. ...

Creates a confirmation dialog box. Default values may be overridden and a callback function may be called after an affirmative response.

Parameters

  • args : ...*

    Dialog box parameters.

    • title : String (optional)

      Title of the dialog box.

      Default: "Confirm"
    • message : String (optional)

      Message of the dialog box.

      Default: "Are you sure?"
    • yes : String (optional)

      Label of the affirmative button of the dialog box.

      Default: "Yes"
    • no : String (optional)

      Label of the negative button of the dialog box.

      Default: "No"
    • callback : Function (optional)

      Callback function invoked after an affirmative response.

    • evt : ...* (optional)

      Callback context.

Returns

  • void