Listeners
Your plugin needs to listen for and respond to events fired by Temenos Explorer. These include the following default settings that the user can change from the main Temenos Explorer settings screen:
Event | Description |
---|---|
dateFormat | The date display format to use |
language | The language to use for translations |
layout | The layout direction, LTR or RTL |
numericFormat | The number display format to use |
role | The current role of the logged in user |
In the context of your plugin which is loaded by Temenos Explorer inside an iFrame, the window
object only references the <iframe>
element.
To listen for events from Temenos Explorer you must add your event listeners to the top
object which references the top level browser window or tab.
Here is an example event listener that is added to the top
object to detect the "language"
event from Temenos Explorer:
// Add listener to detect language changes from Temenos Explorer
top.addEventListener("language", () => {
setupLanguage();
});