JavaScript Extension Development API for Oracle Visual Builder Cloud Service - Classic Applications

Class: module:api/js/UI

Application UI support.

Version:
  • 15.4.5
Source:

Object Literals

module:api/js/UI.Closeable

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:
Type
module:api/js/UI.Closeable
Examples

Creates and shows simple INFO level message in the UI

//create and show a simple INFO message
UI.showNotification(UI.Notification.create({
     message: 'I\'m informing you ...'
});

Creates and shows Notification message. Once it's shown it's closed from the code.

//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();