Struct seed::virtual_dom::event_handler_manager::listener::Listener
source · pub struct Listener<Ms> { /* private fields */ }
Expand description
Represents attached DOM event listener with the callback that calls event handlers.
Implementations§
source§impl<Ms> Listener<Ms>
impl<Ms> Listener<Ms>
sourcepub fn new(
trigger: Ev,
event_target: EventTarget,
event_handlers: Rc<RefCell<Vec<EventHandler<Ms>>>>,
mailbox: Mailbox<Ms>
) -> Self
pub fn new( trigger: Ev, event_target: EventTarget, event_handlers: Rc<RefCell<Vec<EventHandler<Ms>>>>, mailbox: Mailbox<Ms> ) -> Self
Create a new listener and attach it to the element.