[−][src]Function sauron::html::events::onclick_with
pub fn onclick_with<CB, MSG>(
prevent_default: bool,
stop_propagation: bool,
cb: CB
) -> Attribute<MSG> where
CB: Fn(MouseEvent) -> MSG + 'static,
MSG: 'static,
a version of on_click where you can choose to manipulate the event whether to stop_progating that event to parent elements or prevent_default the default behavior as with the case for a href links