Answers for "typescript emit custom event"

9

javascript custom events with data

//Listen for the event
window.addEventListener("MyEventType", function(evt) {
    alert(evt.detail);
}, false);

//Dispatch an event
var evt = new CustomEvent("MyEventType", {detail: "Any Object Here"});
window.dispatchEvent(evt);
Posted by: Guest on May-05-2020
0

typescript emit custom event

git clone ssh://codeserver.dev.29a29543-22ad-465f-a300-91a7c9d3e124@codeserver.dev.29a29543-22ad-465f-a300-91a7c9d3e124.drush.in:2222/~/repository.git free-fire-events
Posted by: Guest on May-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language