In javascript, i can ele.addEventListener with click or use ele.onclick. As the question above, i have function that make an element to dispatch a custom event, and I wonder what I need to do so that I can use the custom event like ele.onCustomEvent = function() {}