MCPcopy Create free account
hub / github.com/angular-rust/yew-components / change

Method change

src/switch.rs:70–77  ·  view source on GitHub ↗
(&mut self, props: Self::Properties)

Source from the content-addressed store, hash-verified

68 }
69
70 fn change(&mut self, props: Self::Properties) -> bool {
71 if self.props != props {
72 self.props = props;
73 true
74 } else {
75 false
76 }
77 }
78
79 fn view(&self) -> Html {
80 // disabled=self.props.disabled

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected