- GenericEvent<K>(htmlElementID, type): (<This>(target, context) => void)
Type Parameters
- K extends keyof HTMLElementEventMap
Parameters
- htmlElementID: string
- type: K
Returns (<This>(target, context) => void)
DecoratorCallback
- <This>(target, context): void
Parameters
- target: ((this, event) => void)
- (this, event): void
Parameters
- this: This
- event: ExtendedEventMap[K]
Returns void
- context: ClassMethodDecoratorContext<This, ((this, event) => void)>
Returns void
the element to bind the event to