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

Method view

src/text_inputs/textarea.rs:134–167  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

132 }
133
134 fn view(&self) -> Html {
135 // rows?=self.props.rows
136 // cols?=self.props.cols
137 // label?=to_option_string(&self.props.label)
138 // placeholder?=to_option_string(&self.props.placeholder)
139 // icon?=to_option_string(&self.props.icon)
140 // iconTrailing?=to_option_string(&self.props.icon_trailing)
141 // disabled=self.props.disabled
142 // charCounter?=self.props.char_counter.as_ref().map(|it| it.to_string())
143 // outlined?=to_option(self.props.outlined)
144 // helper?=to_option_string(&self.props.helper)
145 // helperPersistent?=to_option(self.props.helper_persistent)
146 // required=self.props.required
147 // maxLength?=to_option_string(&self.props.max_length)
148 // validationMessage?=to_option_string(&self.props.validation_message)
149 // min?=to_option_string(&self.props.min)
150 // max?=to_option_string(&self.props.max)
151 // size?=self.props.size
152 // step?=self.props.step
153 // autoValidate?=to_option(self.props.auto_validate)
154 // validateOnInitialRender?=to_option(self.props.validate_on_initial_render)
155 // name?=to_option_string(&self.props.name)
156 // ref=self.node_ref.clone()
157
158 html! {
159 <label class="mdc-text-field mdc-text-field--filled mdc-text-field--textarea mdc-text-field--no-label">
160 <span class="mdc-text-field__ripple"></span>
161 <span class="mdc-text-field__resizer">
162 <textarea class="mdc-text-field__input" rows="8" cols="40" aria-label="Label"></textarea>
163 </span>
164 <span class="mdc-line-ripple"></span>
165 </label>
166 }
167 }
168
169 fn rendered(&mut self, first_render: bool) {
170 // let element = self.node_ref.cast::<TextArea>().unwrap();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected