MCPcopy Index your code
hub / github.com/algoscienceacademy/RustUI / on_click

Method on_click

src/components/button.rs:34–40  ·  view source on GitHub ↗
(mut self, callback: F)

Source from the content-addressed store, hash-verified

32 }
33
34 pub fn on_click<F>(mut self, callback: F) -> Self
35 where
36 F: Fn() + Send + Sync + 'static
37 {
38 self.on_click = Some(Arc::new(callback));
39 self
40 }
41}
42
43impl Component for Button {

Callers 3

rebuild_uiMethod · 0.80
rebuild_uiMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected