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({});
Creates a confirmation dialog box. Default values may be overridden and a callback function may be called after an affirmative response.
Dialog box parameters.
Title of the dialog box.
Default: "Confirm"Message of the dialog box.
Default: "Are you sure?"Label of the affirmative button of the dialog box.
Default: "Yes"Label of the negative button of the dialog box.
Default: "No"Callback function invoked after an affirmative response.
Callback context.