html/generated/
textarea.rs

1pub mod element {
2    /// The HTML `<textarea>` element
3    ///
4    /// [MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea)
5    #[doc(alias = "textarea")]
6    #[non_exhaustive]
7    #[derive(PartialEq, Clone, Default)]
8    pub struct TextArea {
9        sys: html_sys::forms::TextArea,
10    }
11    impl TextArea {
12        /// Create a new builder
13        pub fn builder() -> super::builder::TextAreaBuilder {
14            super::builder::TextAreaBuilder::new(Default::default())
15        }
16    }
17    impl TextArea {
18        /// Access the element's `data-*` properties
19        pub fn data_map(&self) -> &html_sys::DataMap {
20            &self.sys.data_map
21        }
22        /// Mutably access the element's `data-*` properties
23        pub fn data_map_mut(&mut self) -> &mut html_sys::DataMap {
24            &mut self.sys.data_map
25        }
26    }
27    impl TextArea {
28        /// Get the value of the `autocomplete` attribute
29        pub fn autocomplete(&self) -> std::option::Option<&str> {
30            self.sys.autocomplete.as_deref()
31        }
32        /// Set the value of the `autocomplete` attribute
33        pub fn set_autocomplete(
34            &mut self,
35            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
36        ) {
37            self.sys.autocomplete = value.map(|v| v.into());
38        }
39        /// Get the value of the `cols` attribute
40        pub fn cols(&self) -> std::option::Option<i64> {
41            self.sys.cols
42        }
43        /// Set the value of the `cols` attribute
44        pub fn set_cols(&mut self, value: std::option::Option<i64>) {
45            self.sys.cols = value;
46        }
47        /// Get the value of the `dirname` attribute
48        pub fn dir_name(&self) -> std::option::Option<&str> {
49            self.sys.dir_name.as_deref()
50        }
51        /// Set the value of the `dirname` attribute
52        pub fn set_dir_name(
53            &mut self,
54            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
55        ) {
56            self.sys.dir_name = value.map(|v| v.into());
57        }
58        /// Get the value of the `disabled` attribute
59        pub fn disabled(&self) -> bool {
60            self.sys.disabled
61        }
62        /// Set the value of the `disabled` attribute
63        pub fn set_disabled(&mut self, value: bool) {
64            self.sys.disabled = value;
65        }
66        /// Get the value of the `form` attribute
67        pub fn form(&self) -> std::option::Option<&str> {
68            self.sys.form.as_deref()
69        }
70        /// Set the value of the `form` attribute
71        pub fn set_form(
72            &mut self,
73            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
74        ) {
75            self.sys.form = value.map(|v| v.into());
76        }
77        /// Get the value of the `maxlength` attribute
78        pub fn max_length(&self) -> std::option::Option<i64> {
79            self.sys.max_length
80        }
81        /// Set the value of the `maxlength` attribute
82        pub fn set_max_length(&mut self, value: std::option::Option<i64>) {
83            self.sys.max_length = value;
84        }
85        /// Get the value of the `minlength` attribute
86        pub fn min_length(&self) -> std::option::Option<i64> {
87            self.sys.min_length
88        }
89        /// Set the value of the `minlength` attribute
90        pub fn set_min_length(&mut self, value: std::option::Option<i64>) {
91            self.sys.min_length = value;
92        }
93        /// Get the value of the `name` attribute
94        pub fn name(&self) -> std::option::Option<&str> {
95            self.sys.name.as_deref()
96        }
97        /// Set the value of the `name` attribute
98        pub fn set_name(
99            &mut self,
100            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
101        ) {
102            self.sys.name = value.map(|v| v.into());
103        }
104        /// Get the value of the `placeholder` attribute
105        pub fn placeholder(&self) -> std::option::Option<&str> {
106            self.sys.placeholder.as_deref()
107        }
108        /// Set the value of the `placeholder` attribute
109        pub fn set_placeholder(
110            &mut self,
111            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
112        ) {
113            self.sys.placeholder = value.map(|v| v.into());
114        }
115        /// Get the value of the `readonly` attribute
116        pub fn read_only(&self) -> bool {
117            self.sys.read_only
118        }
119        /// Set the value of the `readonly` attribute
120        pub fn set_read_only(&mut self, value: bool) {
121            self.sys.read_only = value;
122        }
123        /// Get the value of the `required` attribute
124        pub fn required(&self) -> bool {
125            self.sys.required
126        }
127        /// Set the value of the `required` attribute
128        pub fn set_required(&mut self, value: bool) {
129            self.sys.required = value;
130        }
131        /// Get the value of the `rows` attribute
132        pub fn rows(&self) -> std::option::Option<i64> {
133            self.sys.rows
134        }
135        /// Set the value of the `rows` attribute
136        pub fn set_rows(&mut self, value: std::option::Option<i64>) {
137            self.sys.rows = value;
138        }
139        /// Get the value of the `wrap` attribute
140        pub fn wrap(&self) -> std::option::Option<&str> {
141            self.sys.wrap.as_deref()
142        }
143        /// Set the value of the `wrap` attribute
144        pub fn set_wrap(
145            &mut self,
146            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
147        ) {
148            self.sys.wrap = value.map(|v| v.into());
149        }
150        /// Get the value of the `role` attribute
151        pub fn role(&self) -> std::option::Option<&str> {
152            self.sys.role.as_deref()
153        }
154        /// Set the value of the `role` attribute
155        pub fn set_role(
156            &mut self,
157            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
158        ) {
159            self.sys.role = value.map(|v| v.into());
160        }
161        /// Get the value of the `aria-activedescendant` attribute
162        pub fn aria_active_descendant_element(&self) -> std::option::Option<&str> {
163            self.sys.aria_active_descendant_element.as_deref()
164        }
165        /// Set the value of the `aria-activedescendant` attribute
166        pub fn set_aria_active_descendant_element(
167            &mut self,
168            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
169        ) {
170            self.sys.aria_active_descendant_element = value.map(|v| v.into());
171        }
172        /// Get the value of the `aria-atomic` attribute
173        pub fn aria_atomic(&self) -> bool {
174            self.sys.aria_atomic
175        }
176        /// Set the value of the `aria-atomic` attribute
177        pub fn set_aria_atomic(&mut self, value: bool) {
178            self.sys.aria_atomic = value;
179        }
180        /// Get the value of the `aria-autocomplete` attribute
181        pub fn aria_auto_complete(&self) -> std::option::Option<&str> {
182            self.sys.aria_auto_complete.as_deref()
183        }
184        /// Set the value of the `aria-autocomplete` attribute
185        pub fn set_aria_auto_complete(
186            &mut self,
187            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
188        ) {
189            self.sys.aria_auto_complete = value.map(|v| v.into());
190        }
191        /// Get the value of the `aria-braillelabel` attribute
192        pub fn aria_braille_label(&self) -> std::option::Option<&str> {
193            self.sys.aria_braille_label.as_deref()
194        }
195        /// Set the value of the `aria-braillelabel` attribute
196        pub fn set_aria_braille_label(
197            &mut self,
198            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
199        ) {
200            self.sys.aria_braille_label = value.map(|v| v.into());
201        }
202        /// Get the value of the `aria-brailleroledescription` attribute
203        pub fn aria_braille_role_description(&self) -> std::option::Option<&str> {
204            self.sys.aria_braille_role_description.as_deref()
205        }
206        /// Set the value of the `aria-brailleroledescription` attribute
207        pub fn set_aria_braille_role_description(
208            &mut self,
209            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
210        ) {
211            self.sys.aria_braille_role_description = value.map(|v| v.into());
212        }
213        /// Get the value of the `aria-busy` attribute
214        pub fn aria_busy(&self) -> bool {
215            self.sys.aria_busy
216        }
217        /// Set the value of the `aria-busy` attribute
218        pub fn set_aria_busy(&mut self, value: bool) {
219            self.sys.aria_busy = value;
220        }
221        /// Get the value of the `aria-controls` attribute
222        pub fn aria_controls_elements(&self) -> std::option::Option<&str> {
223            self.sys.aria_controls_elements.as_deref()
224        }
225        /// Set the value of the `aria-controls` attribute
226        pub fn set_aria_controls_elements(
227            &mut self,
228            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
229        ) {
230            self.sys.aria_controls_elements = value.map(|v| v.into());
231        }
232        /// Get the value of the `aria-current` attribute
233        pub fn aria_current(&self) -> std::option::Option<&str> {
234            self.sys.aria_current.as_deref()
235        }
236        /// Set the value of the `aria-current` attribute
237        pub fn set_aria_current(
238            &mut self,
239            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
240        ) {
241            self.sys.aria_current = value.map(|v| v.into());
242        }
243        /// Get the value of the `aria-describedby` attribute
244        pub fn aria_described_by_elements(&self) -> std::option::Option<&str> {
245            self.sys.aria_described_by_elements.as_deref()
246        }
247        /// Set the value of the `aria-describedby` attribute
248        pub fn set_aria_described_by_elements(
249            &mut self,
250            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
251        ) {
252            self.sys.aria_described_by_elements = value.map(|v| v.into());
253        }
254        /// Get the value of the `aria-description` attribute
255        pub fn aria_description(&self) -> std::option::Option<&str> {
256            self.sys.aria_description.as_deref()
257        }
258        /// Set the value of the `aria-description` attribute
259        pub fn set_aria_description(
260            &mut self,
261            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
262        ) {
263            self.sys.aria_description = value.map(|v| v.into());
264        }
265        /// Get the value of the `aria-details` attribute
266        pub fn aria_details_elements(&self) -> std::option::Option<&str> {
267            self.sys.aria_details_elements.as_deref()
268        }
269        /// Set the value of the `aria-details` attribute
270        pub fn set_aria_details_elements(
271            &mut self,
272            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
273        ) {
274            self.sys.aria_details_elements = value.map(|v| v.into());
275        }
276        /// Get the value of the `aria-disabled` attribute
277        pub fn aria_disabled(&self) -> bool {
278            self.sys.aria_disabled
279        }
280        /// Set the value of the `aria-disabled` attribute
281        pub fn set_aria_disabled(&mut self, value: bool) {
282            self.sys.aria_disabled = value;
283        }
284        /// Get the value of the `aria-dropeffect` attribute
285        pub fn aria_drop_effect(&self) -> std::option::Option<&str> {
286            self.sys.aria_drop_effect.as_deref()
287        }
288        /// Set the value of the `aria-dropeffect` attribute
289        pub fn set_aria_drop_effect(
290            &mut self,
291            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
292        ) {
293            self.sys.aria_drop_effect = value.map(|v| v.into());
294        }
295        /// Get the value of the `aria-errormessage` attribute
296        pub fn aria_error_message_elements(&self) -> std::option::Option<&str> {
297            self.sys.aria_error_message_elements.as_deref()
298        }
299        /// Set the value of the `aria-errormessage` attribute
300        pub fn set_aria_error_message_elements(
301            &mut self,
302            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
303        ) {
304            self.sys.aria_error_message_elements = value.map(|v| v.into());
305        }
306        /// Get the value of the `aria-flowto` attribute
307        pub fn aria_flow_to_elements(&self) -> std::option::Option<&str> {
308            self.sys.aria_flow_to_elements.as_deref()
309        }
310        /// Set the value of the `aria-flowto` attribute
311        pub fn set_aria_flow_to_elements(
312            &mut self,
313            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
314        ) {
315            self.sys.aria_flow_to_elements = value.map(|v| v.into());
316        }
317        /// Get the value of the `aria-grabbed` attribute
318        pub fn aria_grabbed(&self) -> bool {
319            self.sys.aria_grabbed
320        }
321        /// Set the value of the `aria-grabbed` attribute
322        pub fn set_aria_grabbed(&mut self, value: bool) {
323            self.sys.aria_grabbed = value;
324        }
325        /// Get the value of the `aria-haspopup` attribute
326        pub fn aria_has_popup(&self) -> std::option::Option<&str> {
327            self.sys.aria_has_popup.as_deref()
328        }
329        /// Set the value of the `aria-haspopup` attribute
330        pub fn set_aria_has_popup(
331            &mut self,
332            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
333        ) {
334            self.sys.aria_has_popup = value.map(|v| v.into());
335        }
336        /// Get the value of the `aria-hidden` attribute
337        pub fn aria_hidden(&self) -> bool {
338            self.sys.aria_hidden
339        }
340        /// Set the value of the `aria-hidden` attribute
341        pub fn set_aria_hidden(&mut self, value: bool) {
342            self.sys.aria_hidden = value;
343        }
344        /// Get the value of the `aria-invalid` attribute
345        pub fn aria_invalid(&self) -> std::option::Option<&str> {
346            self.sys.aria_invalid.as_deref()
347        }
348        /// Set the value of the `aria-invalid` attribute
349        pub fn set_aria_invalid(
350            &mut self,
351            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
352        ) {
353            self.sys.aria_invalid = value.map(|v| v.into());
354        }
355        /// Get the value of the `aria-keyshortcuts` attribute
356        pub fn aria_key_shortcuts(&self) -> std::option::Option<&str> {
357            self.sys.aria_key_shortcuts.as_deref()
358        }
359        /// Set the value of the `aria-keyshortcuts` attribute
360        pub fn set_aria_key_shortcuts(
361            &mut self,
362            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
363        ) {
364            self.sys.aria_key_shortcuts = value.map(|v| v.into());
365        }
366        /// Get the value of the `aria-label` attribute
367        pub fn aria_label(&self) -> std::option::Option<&str> {
368            self.sys.aria_label.as_deref()
369        }
370        /// Set the value of the `aria-label` attribute
371        pub fn set_aria_label(
372            &mut self,
373            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
374        ) {
375            self.sys.aria_label = value.map(|v| v.into());
376        }
377        /// Get the value of the `aria-labelledby` attribute
378        pub fn aria_labelled_by_elements(&self) -> std::option::Option<&str> {
379            self.sys.aria_labelled_by_elements.as_deref()
380        }
381        /// Set the value of the `aria-labelledby` attribute
382        pub fn set_aria_labelled_by_elements(
383            &mut self,
384            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
385        ) {
386            self.sys.aria_labelled_by_elements = value.map(|v| v.into());
387        }
388        /// Get the value of the `aria-live` attribute
389        pub fn aria_live(&self) -> std::option::Option<&str> {
390            self.sys.aria_live.as_deref()
391        }
392        /// Set the value of the `aria-live` attribute
393        pub fn set_aria_live(
394            &mut self,
395            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
396        ) {
397            self.sys.aria_live = value.map(|v| v.into());
398        }
399        /// Get the value of the `aria-multiline` attribute
400        pub fn aria_multi_line(&self) -> bool {
401            self.sys.aria_multi_line
402        }
403        /// Set the value of the `aria-multiline` attribute
404        pub fn set_aria_multi_line(&mut self, value: bool) {
405            self.sys.aria_multi_line = value;
406        }
407        /// Get the value of the `aria-owns` attribute
408        pub fn aria_owns_elements(&self) -> std::option::Option<&str> {
409            self.sys.aria_owns_elements.as_deref()
410        }
411        /// Set the value of the `aria-owns` attribute
412        pub fn set_aria_owns_elements(
413            &mut self,
414            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
415        ) {
416            self.sys.aria_owns_elements = value.map(|v| v.into());
417        }
418        /// Get the value of the `aria-placeholder` attribute
419        pub fn aria_placeholder(&self) -> std::option::Option<&str> {
420            self.sys.aria_placeholder.as_deref()
421        }
422        /// Set the value of the `aria-placeholder` attribute
423        pub fn set_aria_placeholder(
424            &mut self,
425            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
426        ) {
427            self.sys.aria_placeholder = value.map(|v| v.into());
428        }
429        /// Get the value of the `aria-readonly` attribute
430        pub fn aria_read_only(&self) -> bool {
431            self.sys.aria_read_only
432        }
433        /// Set the value of the `aria-readonly` attribute
434        pub fn set_aria_read_only(&mut self, value: bool) {
435            self.sys.aria_read_only = value;
436        }
437        /// Get the value of the `aria-relevant` attribute
438        pub fn aria_relevant(&self) -> std::option::Option<&str> {
439            self.sys.aria_relevant.as_deref()
440        }
441        /// Set the value of the `aria-relevant` attribute
442        pub fn set_aria_relevant(
443            &mut self,
444            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
445        ) {
446            self.sys.aria_relevant = value.map(|v| v.into());
447        }
448        /// Get the value of the `aria-required` attribute
449        pub fn aria_required(&self) -> bool {
450            self.sys.aria_required
451        }
452        /// Set the value of the `aria-required` attribute
453        pub fn set_aria_required(&mut self, value: bool) {
454            self.sys.aria_required = value;
455        }
456        /// Get the value of the `aria-roledescription` attribute
457        pub fn aria_role_description(&self) -> std::option::Option<&str> {
458            self.sys.aria_role_description.as_deref()
459        }
460        /// Set the value of the `aria-roledescription` attribute
461        pub fn set_aria_role_description(
462            &mut self,
463            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
464        ) {
465            self.sys.aria_role_description = value.map(|v| v.into());
466        }
467        /// Get the value of the `accesskey` attribute
468        pub fn access_key(&self) -> std::option::Option<&str> {
469            self.sys.access_key.as_deref()
470        }
471        /// Set the value of the `accesskey` attribute
472        pub fn set_access_key(
473            &mut self,
474            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
475        ) {
476            self.sys.access_key = value.map(|v| v.into());
477        }
478        /// Get the value of the `autocapitalize` attribute
479        pub fn auto_capitalize(&self) -> std::option::Option<&str> {
480            self.sys.auto_capitalize.as_deref()
481        }
482        /// Set the value of the `autocapitalize` attribute
483        pub fn set_auto_capitalize(
484            &mut self,
485            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
486        ) {
487            self.sys.auto_capitalize = value.map(|v| v.into());
488        }
489        /// Get the value of the `autofocus` attribute
490        pub fn autofocus(&self) -> bool {
491            self.sys.autofocus
492        }
493        /// Set the value of the `autofocus` attribute
494        pub fn set_autofocus(&mut self, value: bool) {
495            self.sys.autofocus = value;
496        }
497        /// Get the value of the `class` attribute
498        pub fn class(&self) -> std::option::Option<&str> {
499            self.sys.class.as_deref()
500        }
501        /// Set the value of the `class` attribute
502        pub fn set_class(
503            &mut self,
504            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
505        ) {
506            self.sys.class = value.map(|v| v.into());
507        }
508        /// Get the value of the `contenteditable` attribute
509        pub fn content_editable(&self) -> std::option::Option<&str> {
510            self.sys.content_editable.as_deref()
511        }
512        /// Set the value of the `contenteditable` attribute
513        pub fn set_content_editable(
514            &mut self,
515            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
516        ) {
517            self.sys.content_editable = value.map(|v| v.into());
518        }
519        /// Get the value of the `dir` attribute
520        pub fn direction(&self) -> std::option::Option<&str> {
521            self.sys.direction.as_deref()
522        }
523        /// Set the value of the `dir` attribute
524        pub fn set_direction(
525            &mut self,
526            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
527        ) {
528            self.sys.direction = value.map(|v| v.into());
529        }
530        /// Get the value of the `draggable` attribute
531        pub fn draggable(&self) -> bool {
532            self.sys.draggable
533        }
534        /// Set the value of the `draggable` attribute
535        pub fn set_draggable(&mut self, value: bool) {
536            self.sys.draggable = value;
537        }
538        /// Get the value of the `enterkeyhint` attribute
539        pub fn enter_key_hint(&self) -> std::option::Option<&str> {
540            self.sys.enter_key_hint.as_deref()
541        }
542        /// Set the value of the `enterkeyhint` attribute
543        pub fn set_enter_key_hint(
544            &mut self,
545            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
546        ) {
547            self.sys.enter_key_hint = value.map(|v| v.into());
548        }
549        /// Get the value of the `exportparts` attribute
550        pub fn export_parts(&self) -> std::option::Option<&str> {
551            self.sys.export_parts.as_deref()
552        }
553        /// Set the value of the `exportparts` attribute
554        pub fn set_export_parts(
555            &mut self,
556            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
557        ) {
558            self.sys.export_parts = value.map(|v| v.into());
559        }
560        /// Get the value of the `hidden` attribute
561        pub fn hidden(&self) -> std::option::Option<&str> {
562            self.sys.hidden.as_deref()
563        }
564        /// Set the value of the `hidden` attribute
565        pub fn set_hidden(
566            &mut self,
567            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
568        ) {
569            self.sys.hidden = value.map(|v| v.into());
570        }
571        /// Get the value of the `id` attribute
572        pub fn id(&self) -> std::option::Option<&str> {
573            self.sys.id.as_deref()
574        }
575        /// Set the value of the `id` attribute
576        pub fn set_id(
577            &mut self,
578            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
579        ) {
580            self.sys.id = value.map(|v| v.into());
581        }
582        /// Get the value of the `inert` attribute
583        pub fn inert(&self) -> bool {
584            self.sys.inert
585        }
586        /// Set the value of the `inert` attribute
587        pub fn set_inert(&mut self, value: bool) {
588            self.sys.inert = value;
589        }
590        /// Get the value of the `inputmode` attribute
591        pub fn input_mode(&self) -> std::option::Option<&str> {
592            self.sys.input_mode.as_deref()
593        }
594        /// Set the value of the `inputmode` attribute
595        pub fn set_input_mode(
596            &mut self,
597            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
598        ) {
599            self.sys.input_mode = value.map(|v| v.into());
600        }
601        /// Get the value of the `is` attribute
602        pub fn is_(&self) -> std::option::Option<&str> {
603            self.sys.is_.as_deref()
604        }
605        /// Set the value of the `is` attribute
606        pub fn set_is_(
607            &mut self,
608            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
609        ) {
610            self.sys.is_ = value.map(|v| v.into());
611        }
612        /// Get the value of the `itemid` attribute
613        pub fn item_id(&self) -> std::option::Option<&str> {
614            self.sys.item_id.as_deref()
615        }
616        /// Set the value of the `itemid` attribute
617        pub fn set_item_id(
618            &mut self,
619            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
620        ) {
621            self.sys.item_id = value.map(|v| v.into());
622        }
623        /// Get the value of the `itemprop` attribute
624        pub fn item_prop(&self) -> std::option::Option<&str> {
625            self.sys.item_prop.as_deref()
626        }
627        /// Set the value of the `itemprop` attribute
628        pub fn set_item_prop(
629            &mut self,
630            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
631        ) {
632            self.sys.item_prop = value.map(|v| v.into());
633        }
634        /// Get the value of the `itemref` attribute
635        pub fn item_ref(&self) -> std::option::Option<&str> {
636            self.sys.item_ref.as_deref()
637        }
638        /// Set the value of the `itemref` attribute
639        pub fn set_item_ref(
640            &mut self,
641            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
642        ) {
643            self.sys.item_ref = value.map(|v| v.into());
644        }
645        /// Get the value of the `itemscope` attribute
646        pub fn item_scope(&self) -> std::option::Option<&str> {
647            self.sys.item_scope.as_deref()
648        }
649        /// Set the value of the `itemscope` attribute
650        pub fn set_item_scope(
651            &mut self,
652            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
653        ) {
654            self.sys.item_scope = value.map(|v| v.into());
655        }
656        /// Get the value of the `itemtype` attribute
657        pub fn item_type(&self) -> std::option::Option<&str> {
658            self.sys.item_type.as_deref()
659        }
660        /// Set the value of the `itemtype` attribute
661        pub fn set_item_type(
662            &mut self,
663            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
664        ) {
665            self.sys.item_type = value.map(|v| v.into());
666        }
667        /// Get the value of the `lang` attribute
668        pub fn lang(&self) -> std::option::Option<&str> {
669            self.sys.lang.as_deref()
670        }
671        /// Set the value of the `lang` attribute
672        pub fn set_lang(
673            &mut self,
674            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
675        ) {
676            self.sys.lang = value.map(|v| v.into());
677        }
678        /// Get the value of the `nonce` attribute
679        pub fn nonce(&self) -> std::option::Option<&str> {
680            self.sys.nonce.as_deref()
681        }
682        /// Set the value of the `nonce` attribute
683        pub fn set_nonce(
684            &mut self,
685            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
686        ) {
687            self.sys.nonce = value.map(|v| v.into());
688        }
689        /// Get the value of the `part` attribute
690        pub fn part(&self) -> std::option::Option<&str> {
691            self.sys.part.as_deref()
692        }
693        /// Set the value of the `part` attribute
694        pub fn set_part(
695            &mut self,
696            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
697        ) {
698            self.sys.part = value.map(|v| v.into());
699        }
700        /// Get the value of the `slot` attribute
701        pub fn slot(&self) -> std::option::Option<&str> {
702            self.sys.slot.as_deref()
703        }
704        /// Set the value of the `slot` attribute
705        pub fn set_slot(
706            &mut self,
707            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
708        ) {
709            self.sys.slot = value.map(|v| v.into());
710        }
711        /// Get the value of the `spellcheck` attribute
712        pub fn spellcheck(&self) -> std::option::Option<&str> {
713            self.sys.spellcheck.as_deref()
714        }
715        /// Set the value of the `spellcheck` attribute
716        pub fn set_spellcheck(
717            &mut self,
718            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
719        ) {
720            self.sys.spellcheck = value.map(|v| v.into());
721        }
722        /// Get the value of the `style` attribute
723        pub fn style(&self) -> std::option::Option<&str> {
724            self.sys.style.as_deref()
725        }
726        /// Set the value of the `style` attribute
727        pub fn set_style(
728            &mut self,
729            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
730        ) {
731            self.sys.style = value.map(|v| v.into());
732        }
733        /// Get the value of the `tabindex` attribute
734        pub fn tab_index(&self) -> std::option::Option<i64> {
735            self.sys.tab_index
736        }
737        /// Set the value of the `tabindex` attribute
738        pub fn set_tab_index(&mut self, value: std::option::Option<i64>) {
739            self.sys.tab_index = value;
740        }
741        /// Get the value of the `title` attribute
742        pub fn title(&self) -> std::option::Option<&str> {
743            self.sys.title.as_deref()
744        }
745        /// Set the value of the `title` attribute
746        pub fn set_title(
747            &mut self,
748            value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
749        ) {
750            self.sys.title = value.map(|v| v.into());
751        }
752        /// Get the value of the `translate` attribute
753        pub fn translate(&self) -> bool {
754            self.sys.translate
755        }
756        /// Set the value of the `translate` attribute
757        pub fn set_translate(&mut self, value: bool) {
758            self.sys.translate = value;
759        }
760    }
761    impl crate::Render for TextArea {
762        fn render(
763            &self,
764            f: &mut std::fmt::Formatter<'_>,
765            depth: usize,
766        ) -> std::fmt::Result {
767            write!(f, "{:level$}", "", level = depth * 4)?;
768            html_sys::RenderElement::write_opening_tag(&self.sys, f)?;
769            write!(f, "{:level$}", "", level = depth * 4)?;
770            html_sys::RenderElement::write_closing_tag(&self.sys, f)?;
771            Ok(())
772        }
773    }
774    impl std::fmt::Debug for TextArea {
775        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
776            crate::Render::render(self, f, 0)?;
777            Ok(())
778        }
779    }
780    impl std::fmt::Display for TextArea {
781        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
782            html_sys::RenderElement::write_opening_tag(&self.sys, f)?;
783            html_sys::RenderElement::write_closing_tag(&self.sys, f)?;
784            Ok(())
785        }
786    }
787    impl crate::HtmlElement for TextArea {}
788    impl crate::FlowContent for TextArea {}
789    impl crate::PhrasingContent for TextArea {}
790    impl crate::InteractiveContent for TextArea {}
791    impl crate::PalpableContent for TextArea {}
792    impl std::convert::Into<html_sys::forms::TextArea> for TextArea {
793        fn into(self) -> html_sys::forms::TextArea {
794            self.sys
795        }
796    }
797    impl From<html_sys::forms::TextArea> for TextArea {
798        fn from(sys: html_sys::forms::TextArea) -> Self {
799            Self { sys }
800        }
801    }
802}
803pub mod child {}
804pub mod builder {
805    /// A builder struct for TextArea
806    pub struct TextAreaBuilder {
807        element: super::element::TextArea,
808    }
809    impl TextAreaBuilder {
810        pub(crate) fn new(element: super::element::TextArea) -> Self {
811            Self { element }
812        }
813        /// Finish building the element
814        pub fn build(&mut self) -> super::element::TextArea {
815            self.element.clone()
816        }
817        /// Insert a `data-*` property
818        pub fn data(
819            &mut self,
820            data_key: impl Into<std::borrow::Cow<'static, str>>,
821            value: impl Into<std::borrow::Cow<'static, str>>,
822        ) -> &mut TextAreaBuilder {
823            self.element.data_map_mut().insert(data_key.into(), value.into());
824            self
825        }
826        /// Set the value of the `autocomplete` attribute
827        pub fn autocomplete(
828            &mut self,
829            value: impl Into<std::borrow::Cow<'static, str>>,
830        ) -> &mut Self {
831            self.element.set_autocomplete(Some(value.into()));
832            self
833        }
834        /// Set the value of the `cols` attribute
835        pub fn cols(&mut self, value: i64) -> &mut Self {
836            self.element.set_cols(Some(value));
837            self
838        }
839        /// Set the value of the `dirname` attribute
840        pub fn dir_name(
841            &mut self,
842            value: impl Into<std::borrow::Cow<'static, str>>,
843        ) -> &mut Self {
844            self.element.set_dir_name(Some(value.into()));
845            self
846        }
847        /// Set the value of the `disabled` attribute
848        pub fn disabled(&mut self, value: bool) -> &mut Self {
849            self.element.set_disabled(value);
850            self
851        }
852        /// Set the value of the `form` attribute
853        pub fn form(
854            &mut self,
855            value: impl Into<std::borrow::Cow<'static, str>>,
856        ) -> &mut Self {
857            self.element.set_form(Some(value.into()));
858            self
859        }
860        /// Set the value of the `maxlength` attribute
861        pub fn max_length(&mut self, value: i64) -> &mut Self {
862            self.element.set_max_length(Some(value));
863            self
864        }
865        /// Set the value of the `minlength` attribute
866        pub fn min_length(&mut self, value: i64) -> &mut Self {
867            self.element.set_min_length(Some(value));
868            self
869        }
870        /// Set the value of the `name` attribute
871        pub fn name(
872            &mut self,
873            value: impl Into<std::borrow::Cow<'static, str>>,
874        ) -> &mut Self {
875            self.element.set_name(Some(value.into()));
876            self
877        }
878        /// Set the value of the `placeholder` attribute
879        pub fn placeholder(
880            &mut self,
881            value: impl Into<std::borrow::Cow<'static, str>>,
882        ) -> &mut Self {
883            self.element.set_placeholder(Some(value.into()));
884            self
885        }
886        /// Set the value of the `readonly` attribute
887        pub fn read_only(&mut self, value: bool) -> &mut Self {
888            self.element.set_read_only(value);
889            self
890        }
891        /// Set the value of the `required` attribute
892        pub fn required(&mut self, value: bool) -> &mut Self {
893            self.element.set_required(value);
894            self
895        }
896        /// Set the value of the `rows` attribute
897        pub fn rows(&mut self, value: i64) -> &mut Self {
898            self.element.set_rows(Some(value));
899            self
900        }
901        /// Set the value of the `wrap` attribute
902        pub fn wrap(
903            &mut self,
904            value: impl Into<std::borrow::Cow<'static, str>>,
905        ) -> &mut Self {
906            self.element.set_wrap(Some(value.into()));
907            self
908        }
909        /// Set the value of the `role` attribute
910        pub fn role(
911            &mut self,
912            value: impl Into<std::borrow::Cow<'static, str>>,
913        ) -> &mut Self {
914            self.element.set_role(Some(value.into()));
915            self
916        }
917        /// Set the value of the `aria-activedescendant` attribute
918        pub fn aria_active_descendant_element(
919            &mut self,
920            value: impl Into<std::borrow::Cow<'static, str>>,
921        ) -> &mut Self {
922            self.element.set_aria_active_descendant_element(Some(value.into()));
923            self
924        }
925        /// Set the value of the `aria-atomic` attribute
926        pub fn aria_atomic(&mut self, value: bool) -> &mut Self {
927            self.element.set_aria_atomic(value);
928            self
929        }
930        /// Set the value of the `aria-autocomplete` attribute
931        pub fn aria_auto_complete(
932            &mut self,
933            value: impl Into<std::borrow::Cow<'static, str>>,
934        ) -> &mut Self {
935            self.element.set_aria_auto_complete(Some(value.into()));
936            self
937        }
938        /// Set the value of the `aria-braillelabel` attribute
939        pub fn aria_braille_label(
940            &mut self,
941            value: impl Into<std::borrow::Cow<'static, str>>,
942        ) -> &mut Self {
943            self.element.set_aria_braille_label(Some(value.into()));
944            self
945        }
946        /// Set the value of the `aria-brailleroledescription` attribute
947        pub fn aria_braille_role_description(
948            &mut self,
949            value: impl Into<std::borrow::Cow<'static, str>>,
950        ) -> &mut Self {
951            self.element.set_aria_braille_role_description(Some(value.into()));
952            self
953        }
954        /// Set the value of the `aria-busy` attribute
955        pub fn aria_busy(&mut self, value: bool) -> &mut Self {
956            self.element.set_aria_busy(value);
957            self
958        }
959        /// Set the value of the `aria-controls` attribute
960        pub fn aria_controls_elements(
961            &mut self,
962            value: impl Into<std::borrow::Cow<'static, str>>,
963        ) -> &mut Self {
964            self.element.set_aria_controls_elements(Some(value.into()));
965            self
966        }
967        /// Set the value of the `aria-current` attribute
968        pub fn aria_current(
969            &mut self,
970            value: impl Into<std::borrow::Cow<'static, str>>,
971        ) -> &mut Self {
972            self.element.set_aria_current(Some(value.into()));
973            self
974        }
975        /// Set the value of the `aria-describedby` attribute
976        pub fn aria_described_by_elements(
977            &mut self,
978            value: impl Into<std::borrow::Cow<'static, str>>,
979        ) -> &mut Self {
980            self.element.set_aria_described_by_elements(Some(value.into()));
981            self
982        }
983        /// Set the value of the `aria-description` attribute
984        pub fn aria_description(
985            &mut self,
986            value: impl Into<std::borrow::Cow<'static, str>>,
987        ) -> &mut Self {
988            self.element.set_aria_description(Some(value.into()));
989            self
990        }
991        /// Set the value of the `aria-details` attribute
992        pub fn aria_details_elements(
993            &mut self,
994            value: impl Into<std::borrow::Cow<'static, str>>,
995        ) -> &mut Self {
996            self.element.set_aria_details_elements(Some(value.into()));
997            self
998        }
999        /// Set the value of the `aria-disabled` attribute
1000        pub fn aria_disabled(&mut self, value: bool) -> &mut Self {
1001            self.element.set_aria_disabled(value);
1002            self
1003        }
1004        /// Set the value of the `aria-dropeffect` attribute
1005        pub fn aria_drop_effect(
1006            &mut self,
1007            value: impl Into<std::borrow::Cow<'static, str>>,
1008        ) -> &mut Self {
1009            self.element.set_aria_drop_effect(Some(value.into()));
1010            self
1011        }
1012        /// Set the value of the `aria-errormessage` attribute
1013        pub fn aria_error_message_elements(
1014            &mut self,
1015            value: impl Into<std::borrow::Cow<'static, str>>,
1016        ) -> &mut Self {
1017            self.element.set_aria_error_message_elements(Some(value.into()));
1018            self
1019        }
1020        /// Set the value of the `aria-flowto` attribute
1021        pub fn aria_flow_to_elements(
1022            &mut self,
1023            value: impl Into<std::borrow::Cow<'static, str>>,
1024        ) -> &mut Self {
1025            self.element.set_aria_flow_to_elements(Some(value.into()));
1026            self
1027        }
1028        /// Set the value of the `aria-grabbed` attribute
1029        pub fn aria_grabbed(&mut self, value: bool) -> &mut Self {
1030            self.element.set_aria_grabbed(value);
1031            self
1032        }
1033        /// Set the value of the `aria-haspopup` attribute
1034        pub fn aria_has_popup(
1035            &mut self,
1036            value: impl Into<std::borrow::Cow<'static, str>>,
1037        ) -> &mut Self {
1038            self.element.set_aria_has_popup(Some(value.into()));
1039            self
1040        }
1041        /// Set the value of the `aria-hidden` attribute
1042        pub fn aria_hidden(&mut self, value: bool) -> &mut Self {
1043            self.element.set_aria_hidden(value);
1044            self
1045        }
1046        /// Set the value of the `aria-invalid` attribute
1047        pub fn aria_invalid(
1048            &mut self,
1049            value: impl Into<std::borrow::Cow<'static, str>>,
1050        ) -> &mut Self {
1051            self.element.set_aria_invalid(Some(value.into()));
1052            self
1053        }
1054        /// Set the value of the `aria-keyshortcuts` attribute
1055        pub fn aria_key_shortcuts(
1056            &mut self,
1057            value: impl Into<std::borrow::Cow<'static, str>>,
1058        ) -> &mut Self {
1059            self.element.set_aria_key_shortcuts(Some(value.into()));
1060            self
1061        }
1062        /// Set the value of the `aria-label` attribute
1063        pub fn aria_label(
1064            &mut self,
1065            value: impl Into<std::borrow::Cow<'static, str>>,
1066        ) -> &mut Self {
1067            self.element.set_aria_label(Some(value.into()));
1068            self
1069        }
1070        /// Set the value of the `aria-labelledby` attribute
1071        pub fn aria_labelled_by_elements(
1072            &mut self,
1073            value: impl Into<std::borrow::Cow<'static, str>>,
1074        ) -> &mut Self {
1075            self.element.set_aria_labelled_by_elements(Some(value.into()));
1076            self
1077        }
1078        /// Set the value of the `aria-live` attribute
1079        pub fn aria_live(
1080            &mut self,
1081            value: impl Into<std::borrow::Cow<'static, str>>,
1082        ) -> &mut Self {
1083            self.element.set_aria_live(Some(value.into()));
1084            self
1085        }
1086        /// Set the value of the `aria-multiline` attribute
1087        pub fn aria_multi_line(&mut self, value: bool) -> &mut Self {
1088            self.element.set_aria_multi_line(value);
1089            self
1090        }
1091        /// Set the value of the `aria-owns` attribute
1092        pub fn aria_owns_elements(
1093            &mut self,
1094            value: impl Into<std::borrow::Cow<'static, str>>,
1095        ) -> &mut Self {
1096            self.element.set_aria_owns_elements(Some(value.into()));
1097            self
1098        }
1099        /// Set the value of the `aria-placeholder` attribute
1100        pub fn aria_placeholder(
1101            &mut self,
1102            value: impl Into<std::borrow::Cow<'static, str>>,
1103        ) -> &mut Self {
1104            self.element.set_aria_placeholder(Some(value.into()));
1105            self
1106        }
1107        /// Set the value of the `aria-readonly` attribute
1108        pub fn aria_read_only(&mut self, value: bool) -> &mut Self {
1109            self.element.set_aria_read_only(value);
1110            self
1111        }
1112        /// Set the value of the `aria-relevant` attribute
1113        pub fn aria_relevant(
1114            &mut self,
1115            value: impl Into<std::borrow::Cow<'static, str>>,
1116        ) -> &mut Self {
1117            self.element.set_aria_relevant(Some(value.into()));
1118            self
1119        }
1120        /// Set the value of the `aria-required` attribute
1121        pub fn aria_required(&mut self, value: bool) -> &mut Self {
1122            self.element.set_aria_required(value);
1123            self
1124        }
1125        /// Set the value of the `aria-roledescription` attribute
1126        pub fn aria_role_description(
1127            &mut self,
1128            value: impl Into<std::borrow::Cow<'static, str>>,
1129        ) -> &mut Self {
1130            self.element.set_aria_role_description(Some(value.into()));
1131            self
1132        }
1133        /// Set the value of the `accesskey` attribute
1134        pub fn access_key(
1135            &mut self,
1136            value: impl Into<std::borrow::Cow<'static, str>>,
1137        ) -> &mut Self {
1138            self.element.set_access_key(Some(value.into()));
1139            self
1140        }
1141        /// Set the value of the `autocapitalize` attribute
1142        pub fn auto_capitalize(
1143            &mut self,
1144            value: impl Into<std::borrow::Cow<'static, str>>,
1145        ) -> &mut Self {
1146            self.element.set_auto_capitalize(Some(value.into()));
1147            self
1148        }
1149        /// Set the value of the `autofocus` attribute
1150        pub fn autofocus(&mut self, value: bool) -> &mut Self {
1151            self.element.set_autofocus(value);
1152            self
1153        }
1154        /// Set the value of the `class` attribute
1155        pub fn class(
1156            &mut self,
1157            value: impl Into<std::borrow::Cow<'static, str>>,
1158        ) -> &mut Self {
1159            self.element.set_class(Some(value.into()));
1160            self
1161        }
1162        /// Set the value of the `contenteditable` attribute
1163        pub fn content_editable(
1164            &mut self,
1165            value: impl Into<std::borrow::Cow<'static, str>>,
1166        ) -> &mut Self {
1167            self.element.set_content_editable(Some(value.into()));
1168            self
1169        }
1170        /// Set the value of the `dir` attribute
1171        pub fn direction(
1172            &mut self,
1173            value: impl Into<std::borrow::Cow<'static, str>>,
1174        ) -> &mut Self {
1175            self.element.set_direction(Some(value.into()));
1176            self
1177        }
1178        /// Set the value of the `draggable` attribute
1179        pub fn draggable(&mut self, value: bool) -> &mut Self {
1180            self.element.set_draggable(value);
1181            self
1182        }
1183        /// Set the value of the `enterkeyhint` attribute
1184        pub fn enter_key_hint(
1185            &mut self,
1186            value: impl Into<std::borrow::Cow<'static, str>>,
1187        ) -> &mut Self {
1188            self.element.set_enter_key_hint(Some(value.into()));
1189            self
1190        }
1191        /// Set the value of the `exportparts` attribute
1192        pub fn export_parts(
1193            &mut self,
1194            value: impl Into<std::borrow::Cow<'static, str>>,
1195        ) -> &mut Self {
1196            self.element.set_export_parts(Some(value.into()));
1197            self
1198        }
1199        /// Set the value of the `hidden` attribute
1200        pub fn hidden(
1201            &mut self,
1202            value: impl Into<std::borrow::Cow<'static, str>>,
1203        ) -> &mut Self {
1204            self.element.set_hidden(Some(value.into()));
1205            self
1206        }
1207        /// Set the value of the `id` attribute
1208        pub fn id(
1209            &mut self,
1210            value: impl Into<std::borrow::Cow<'static, str>>,
1211        ) -> &mut Self {
1212            self.element.set_id(Some(value.into()));
1213            self
1214        }
1215        /// Set the value of the `inert` attribute
1216        pub fn inert(&mut self, value: bool) -> &mut Self {
1217            self.element.set_inert(value);
1218            self
1219        }
1220        /// Set the value of the `inputmode` attribute
1221        pub fn input_mode(
1222            &mut self,
1223            value: impl Into<std::borrow::Cow<'static, str>>,
1224        ) -> &mut Self {
1225            self.element.set_input_mode(Some(value.into()));
1226            self
1227        }
1228        /// Set the value of the `is` attribute
1229        pub fn is_(
1230            &mut self,
1231            value: impl Into<std::borrow::Cow<'static, str>>,
1232        ) -> &mut Self {
1233            self.element.set_is_(Some(value.into()));
1234            self
1235        }
1236        /// Set the value of the `itemid` attribute
1237        pub fn item_id(
1238            &mut self,
1239            value: impl Into<std::borrow::Cow<'static, str>>,
1240        ) -> &mut Self {
1241            self.element.set_item_id(Some(value.into()));
1242            self
1243        }
1244        /// Set the value of the `itemprop` attribute
1245        pub fn item_prop(
1246            &mut self,
1247            value: impl Into<std::borrow::Cow<'static, str>>,
1248        ) -> &mut Self {
1249            self.element.set_item_prop(Some(value.into()));
1250            self
1251        }
1252        /// Set the value of the `itemref` attribute
1253        pub fn item_ref(
1254            &mut self,
1255            value: impl Into<std::borrow::Cow<'static, str>>,
1256        ) -> &mut Self {
1257            self.element.set_item_ref(Some(value.into()));
1258            self
1259        }
1260        /// Set the value of the `itemscope` attribute
1261        pub fn item_scope(
1262            &mut self,
1263            value: impl Into<std::borrow::Cow<'static, str>>,
1264        ) -> &mut Self {
1265            self.element.set_item_scope(Some(value.into()));
1266            self
1267        }
1268        /// Set the value of the `itemtype` attribute
1269        pub fn item_type(
1270            &mut self,
1271            value: impl Into<std::borrow::Cow<'static, str>>,
1272        ) -> &mut Self {
1273            self.element.set_item_type(Some(value.into()));
1274            self
1275        }
1276        /// Set the value of the `lang` attribute
1277        pub fn lang(
1278            &mut self,
1279            value: impl Into<std::borrow::Cow<'static, str>>,
1280        ) -> &mut Self {
1281            self.element.set_lang(Some(value.into()));
1282            self
1283        }
1284        /// Set the value of the `nonce` attribute
1285        pub fn nonce(
1286            &mut self,
1287            value: impl Into<std::borrow::Cow<'static, str>>,
1288        ) -> &mut Self {
1289            self.element.set_nonce(Some(value.into()));
1290            self
1291        }
1292        /// Set the value of the `part` attribute
1293        pub fn part(
1294            &mut self,
1295            value: impl Into<std::borrow::Cow<'static, str>>,
1296        ) -> &mut Self {
1297            self.element.set_part(Some(value.into()));
1298            self
1299        }
1300        /// Set the value of the `slot` attribute
1301        pub fn slot(
1302            &mut self,
1303            value: impl Into<std::borrow::Cow<'static, str>>,
1304        ) -> &mut Self {
1305            self.element.set_slot(Some(value.into()));
1306            self
1307        }
1308        /// Set the value of the `spellcheck` attribute
1309        pub fn spellcheck(
1310            &mut self,
1311            value: impl Into<std::borrow::Cow<'static, str>>,
1312        ) -> &mut Self {
1313            self.element.set_spellcheck(Some(value.into()));
1314            self
1315        }
1316        /// Set the value of the `style` attribute
1317        pub fn style(
1318            &mut self,
1319            value: impl Into<std::borrow::Cow<'static, str>>,
1320        ) -> &mut Self {
1321            self.element.set_style(Some(value.into()));
1322            self
1323        }
1324        /// Set the value of the `tabindex` attribute
1325        pub fn tab_index(&mut self, value: i64) -> &mut Self {
1326            self.element.set_tab_index(Some(value));
1327            self
1328        }
1329        /// Set the value of the `title` attribute
1330        pub fn title(
1331            &mut self,
1332            value: impl Into<std::borrow::Cow<'static, str>>,
1333        ) -> &mut Self {
1334            self.element.set_title(Some(value.into()));
1335            self
1336        }
1337        /// Set the value of the `translate` attribute
1338        pub fn translate(&mut self, value: bool) -> &mut Self {
1339            self.element.set_translate(value);
1340            self
1341        }
1342    }
1343}