JS Events
-
Hi,
I try to create an event listener for the described event uni_cpo_set_price_event.
Is there an example how to use them?I added the the following code:
document.addEventListener(“uni_cpo_set_price_event”, function(e) {
console.log(e.detail); // Prints “Example of an event”
console.log(“You knocked?”);
});But I get no output in the console (Firefox/Chrome).
Are the events on by default or to I need to activate them?
PS Maybe it will be good to extend the documentation with examples of how to use them.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘JS Events’ is closed to new replies.