These docs are for v0.1.0. Click to read the latest docs for v1.0.0.

Front.alert(options, callback)

Display an alert dialog with the optional specified content and an OK button.

options: object

Field NameTypeDescription
titleStringTitle of the alert.
messageStringBody of the alert.
okTitle (optional)StringLabel 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.');
});