Front.alert(options, callback)
Display an alert dialog with the optional specified content and an OK button.
options: object
Field Name | Type | Description |
---|---|---|
title | String | Title of the alert. |
message | String | Body of the alert. |
okTitle (optional) | 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.');
});