Closed gnestor closed 5 years ago
Thank you Grant!
@yuvipanda if you get a chance I'd love for you to look over this PR as we work on getting the next VDOM release out. We're in a bit of a standstill with some good changes both for using vdom as templates and for interactive notebookiness. Now the event handlers are being moved to a new top level key (that we can ignore for HTML out) and I'd love to get your feedback.
Ready to ship this @gnestor?
Closes https://github.com/nteract/vdom/issues/70
This leaves the UX the same:
However, it moves event handlers out of
VDOM.attributes
so that they can be handled separately from regular attributes.This also modifies the message spec to make
eventHandlers
a top-level property.A couple point to discuss:
event_handlers
be a new argument inVDOM
from_dict
andcreate_component
. Same for extracting style from attributes. Perhaps we should revisit how this is done?from_dict
andcreate_component
(on creation) and serialized onVDOM.to_dict