Alpana provides hooks to let you implement custom behavior when you embed inside your application.
You can subscribe to be notified of the event in Javascript, and get event properties.
First, embed the Dashboard in your application by using the “Embed in code (use jQuery)” code snippet.
Then in your code, you can do something like :
window.addEventListener('message', function (e) {
if (e.data && e.data.name) {
switch (e.data.name) {
case 'onParametersChanged':
const parameters = e.data.arguments;
if (parameters && parameters.length) {
alert(parameters[0].name
+ ' value changed : '
+ (parameters[0].values && parameters[0].values.length ? parameters[0].values.join() : 'null'));
}
break;
}
}
}, false);
Last modified:
Sep 13, 2021
Post your comment on this topic.