Hi,
The following code:
const channel = channelTemplate({
id: `channel{index}${new Date().getTime()}`,
width: '100%',
height: '147%',
centerX: '50%',
centerY: '50%'
}, {}, {});
channel.onHoverTeaser = () => {
voltmx.print("### hover event executed: " + context.eventType);
if (context.eventType !== "leave"){
channel.flxChannel.borderWidth = 0;
channel.flxChannel.borderColor = "ffffff";
} else {
channel.flxChannel.borderWidth = 1;
channel.flxChannel.borderColor = "000000";
}
}
is giving me the following error:
Uncaught ReferenceError: context is not defined at channel.onHoverTeaser
How can I do?