EventHandler<T extends EventName = any>
Description
An EventHandler
is an interface that represents the handler for a type of event. It receives an event argument based on the associated EventName
.
An EventHandler
can be provided thought the EventListenerCollection
.
TypeScript
It has the following signature:
EventHandler<T extends EventName = any> { (args: RelatedEventArgs<T>):void}
See Events Listeners
for examples.
Need help? Contact us!