jodinathan/js_bindings

Generate streams for events

jodinathan opened this issue · 0 comments

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.