Trait yew::virtual_dom::Listener[][src]

pub trait Listener {
    fn kind(&self) -> ListenerKind;
fn handle(&self, event: Event);
fn passive(&self) -> bool; }
Expand description

The Listener trait is an universal implementation of an event listener which is used to bind Rust-listener to JS-listener (DOM).

Required methods

Returns the name of the event

Handles an event firing

Makes the event listener passive. See addEventListener.

Trait Implementations

Formats the value using the given formatter. Read more

Implementors