Application UI support.
- Version:
- 15.4.5
- Source:
Object Literals
Members
(static) Notification :ui/js/api/Notification
stable API
Notifications module.
Type:
- Version:
- 15.4.5
- Source:
Methods
(static) showNotification(notification) → {module:api/js/UI.Closeable}
stable API
Shows a notification.
Parameters:
Name | Type | Description |
---|---|---|
notification |
ui/js/api/Notification | notification to display to user |
- Version:
- 15.4.5
- Source:
Returns:
Examples
//create and show a simple INFO message
UI.showNotification(UI.Notification.create({
message: 'I\'m informing you ...'
});
//create and show a message
var notification = UI.Notification.create({
message: 'Ahoy',
level: UI.Notification.Level.SUCCESS
});
var closeHandler = UI.showNotification(notification);
//explicitly close it later
closeHandler.close();