Module percy_dom::event

source ·

Structs

  • Uniquely identifies an element so that we can store it’s events in VirtualEvents.
  • 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.
  • The name of the event with the on prefix.
  • We need a custom implementation of fmt::Debug since JsValue doesn’t implement debug.
  • A mouse event.
  • A virtual event element node.
  • A tree where each entry holds the events for the corresponding entry in a crate::VirtualNode tree.
  • When we create a DOM node, we store all of it’s closures and all of it’s children’s closures in VirtualEvents.

Enums

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

Functions