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

pub trait Listener {
    fn kind(&self) -> &'static str;
fn attach(&self, element: &Element) -> EventListener; }

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

Required methods

fn kind(&self) -> &'static str

Returns the name of the event

fn attach(&self, element: &Element) -> EventListener

Attaches a listener to the element.

Loading content...

Trait Implementations

impl Debug for dyn Listener[src]

Implementors

Loading content...