Function sauron::dom::events::on_broadcast
source · pub fn on_broadcast<CB, MSG>(cb: CB) -> Attribute<MSG>where
CB: FnMut(InputEvent) -> MSG + 'static,
MSG: 'static,
Expand description
attach an on_broadcast event to the html element