We have addEventListener and the properties like onclick to work with events, however, would be nice to have streams with the correct event types.
For that to happen, first, we need to link the onclick events with their correct event type (today they are all Event) and when we print the onclick property, we also print a dynamic Stream for that same event.
Regarding the name of the new stream, using the example of onclick, the name could be onClick. To differ from the original property. We could also change all event properties like onclick to propOnClick, to let them apart in the autocomplete options.
We have
addEventListenerand the properties likeonclickto work with events, however, would be nice to have streams with the correct event types.For that to happen, first, we need to link the
onclickevents with their correct event type (today they are allEvent) and when we print theonclickproperty, we also print a dynamic Stream for that same event.Regarding the name of the new stream, using the example of
onclick, the name could beonClick. To differ from the original property. We could also change all event properties likeonclicktopropOnClick, to let them apart in the autocomplete options.