Front.alert(options, callback)
Display an alert dialog with the optional specified content and an OK button.
options: object
Field Name | Type | Description |
---|---|---|
| String | Title of the alert. |
| String | Body of the alert. |
| String | Label of the OK button. |
callback: function
A callback function.
Front.alert({
title: 'Title of the alert',
message: 'Body of the alert.',
okTitle: 'Label of the OK button (optional)'
}, function () {
console.log('User clicked OK.');
});