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

Method view

src/slider.rs:81–104  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

79 }
80
81 fn view(&self) -> Html {
82 // value=self.props.value
83 // min=self.props.min
84 // max=self.props.max
85 // step=self.props.step
86 // pin?=to_option(self.props.pin)
87 // markers?=to_option(self.props.markers)
88 // ref=self.node_ref.clone()
89
90 html! {
91 <div class="mdc-slider">
92 <input class="mdc-slider__input" type="range" min="0" max="100" value="50" name="volume" aria-label="Continuous slider demo"/>
93 <div class="mdc-slider__track">
94 <div class="mdc-slider__track--inactive"></div>
95 <div class="mdc-slider__track--active">
96 <div class="mdc-slider__track--active_fill"></div>
97 </div>
98 </div>
99 <div class="mdc-slider__thumb">
100 <div class="mdc-slider__thumb-knob"></div>
101 </div>
102 </div>
103 }
104 }
105
106 fn rendered(&mut self, first_render: bool) {
107 // if first_render {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected