Module event

Module event 

Source

Structs§

ElementEventsId
Uniquely identifies an element so that we can store it’s events in VirtualEvents.
EventAttribFn
Box<dyn AsRef>> is our js_sys::Closure. Stored this way to allow us to store any Closure regardless of the types of its arguments.
EventName
The name of the event with the on prefix.
Events
We need a custom implementation of fmt::Debug since JsValue doesn’t implement debug.
MouseEvent
A mouse event.
VirtualEventElement
A virtual event element node.
VirtualEventNode
A tree where each entry holds the events for the corresponding entry in a crate::VirtualNode tree.
VirtualEvents
When we create a DOM node, we store all of it’s closures and all of it’s children’s closures in VirtualEvents.

Enums§

EventHandler
Event handlers such as the closure in onclick = |event| {}.

Functions§

insert_non_delegated_event
Insert a non-delegated event