Function sauron::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
pub fn on_broadcast<CB, MSG>(cb: CB) -> Attribute<MSG>where
CB: FnMut(InputEvent) -> MSG + 'static,
MSG: 'static,
attach an on_broadcast event to the html element