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

Method view

src/radio.rs:74–93  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

72 }
73
74 fn view(&self) -> Html {
75 // disabled=self.props.disabled
76 // name=self.props.name
77 // value=self.props.value
78 // global?=to_option(self.props.global)
79 // reducedTouchTarget?=to_option(self.props.reduced_touch_target)
80 // ref=self.node_ref.clone()
81
82 // checked=true
83 html! {
84 <div class="mdc-radio">
85 <input class="mdc-radio__native-control" type="radio" id="radio-1" name="radios" />
86 <div class="mdc-radio__background">
87 <div class="mdc-radio__outer-circle"></div>
88 <div class="mdc-radio__inner-circle"></div>
89 </div>
90 <div class="mdc-radio__ripple"></div>
91 </div>
92 }
93 }
94
95 fn rendered(&mut self, first_render: bool) {
96 // let element = self.node_ref.cast::<Radio>().unwrap();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected