Struct dioxus_core::Listener [−][src]
pub struct Listener<'bump> {
pub mounted_node: Cell<Option<ElementId>>,
pub event: &'static str,
// some fields omitted
}
Expand description
An event listener. IE onclick, onkeydown, etc
Fields
mounted_node: Cell<Option<ElementId>>
The ID of the node that this listener is mounted to Used to generate the event listener’s ID on the DOM
event: &'static str
The type of event to listen for.
IE “click” - whatever the renderer needs to attach the listener by name.