To learn more about using JavaScript in LeanFT, see Setting up and working with the JavaScript SDK.
For JavaScript code samples, see Code Samples - JavaScript.

Notification

SAPUI5. Notification

new Notification(notifierIndex, notificationIndex, ownerBar)

A single notification in the NotificationBarTO SAPUI5 object.
Parameters:
Name Type Description
notifierIndex number The 0-based index of the notifier that contains the notification.
notificationIndex number The 0-based index of the notification.
ownerBar NotificationBarTO The notification bar that the current notification belongs to.

Methods

receivedTime() → {Promise.<Date>}

The time at which the notification message was received.
Returns:
a promise that is fulfilled with the time the notification message was received.
Type
Promise.<Date>

select() → {Promise.<void>}

Selects the notification message.
Returns:
a promise that is fulfilled when the operation is done.
Type
Promise.<void>

text() → {Promise.<string>}

The text of the notification message.
Returns:
a promise that is fulfilled with the text of the notification message.
Type
Promise.<string>