Function rui::button

source · []
pub fn button<F: Fn(&mut Context) + 'static>(view: impl View, f: F) -> impl View
Expand description

Calls a function when the button is tapped.