Function rui::button

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

Calls a function when the button is tapped.