View.showMessage(message)
JavaScript API Reference/Ab.view.View object
View.showMessage(message)
Displays a simple message dialog.
Parameters:
-
message
(String): message text.
Example:
View.showMessage(getMessage('messageSave'));
View.showMessage(type, message, details, data, callback)
Displays a customizable message dialog.
Parameters:
-
type
(String): message type, can be 'error' or 'message'; -
message
(String): message text; -
details
(String): (optional) detailed message, or null; -
data
(JS object): (optional) data to display, or null; -
callback
(function reference): (optional) callback function to call after the user dismisses the dialog;
Example:
var controller = this;
View.showMessage('error', getMessage('messageInvalidInput'),
null, // no detailed message
null, // no data
function() {
controller.form.getFieldElement('wr.requestor').focus();
});
�