1pub mod element {
2 #[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 pub fn builder() -> super::builder::TextAreaBuilder {
14 super::builder::TextAreaBuilder::new(Default::default())
15 }
16 }
17 impl TextArea {
18 pub fn data_map(&self) -> &html_sys::DataMap {
20 &self.sys.data_map
21 }
22 pub fn data_map_mut(&mut self) -> &mut html_sys::DataMap {
24 &mut self.sys.data_map
25 }
26 }
27 impl TextArea {
28 pub fn autocomplete(&self) -> std::option::Option<&str> {
30 self.sys.autocomplete.as_deref()
31 }
32 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 pub fn cols(&self) -> std::option::Option<i64> {
41 self.sys.cols
42 }
43 pub fn set_cols(&mut self, value: std::option::Option<i64>) {
45 self.sys.cols = value;
46 }
47 pub fn dir_name(&self) -> std::option::Option<&str> {
49 self.sys.dir_name.as_deref()
50 }
51 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 pub fn disabled(&self) -> bool {
60 self.sys.disabled
61 }
62 pub fn set_disabled(&mut self, value: bool) {
64 self.sys.disabled = value;
65 }
66 pub fn form(&self) -> std::option::Option<&str> {
68 self.sys.form.as_deref()
69 }
70 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 pub fn max_length(&self) -> std::option::Option<i64> {
79 self.sys.max_length
80 }
81 pub fn set_max_length(&mut self, value: std::option::Option<i64>) {
83 self.sys.max_length = value;
84 }
85 pub fn min_length(&self) -> std::option::Option<i64> {
87 self.sys.min_length
88 }
89 pub fn set_min_length(&mut self, value: std::option::Option<i64>) {
91 self.sys.min_length = value;
92 }
93 pub fn name(&self) -> std::option::Option<&str> {
95 self.sys.name.as_deref()
96 }
97 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 pub fn placeholder(&self) -> std::option::Option<&str> {
106 self.sys.placeholder.as_deref()
107 }
108 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 pub fn read_only(&self) -> bool {
117 self.sys.read_only
118 }
119 pub fn set_read_only(&mut self, value: bool) {
121 self.sys.read_only = value;
122 }
123 pub fn required(&self) -> bool {
125 self.sys.required
126 }
127 pub fn set_required(&mut self, value: bool) {
129 self.sys.required = value;
130 }
131 pub fn rows(&self) -> std::option::Option<i64> {
133 self.sys.rows
134 }
135 pub fn set_rows(&mut self, value: std::option::Option<i64>) {
137 self.sys.rows = value;
138 }
139 pub fn wrap(&self) -> std::option::Option<&str> {
141 self.sys.wrap.as_deref()
142 }
143 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 pub fn role(&self) -> std::option::Option<&str> {
152 self.sys.role.as_deref()
153 }
154 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 pub fn aria_active_descendant_element(&self) -> std::option::Option<&str> {
163 self.sys.aria_active_descendant_element.as_deref()
164 }
165 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 pub fn aria_atomic(&self) -> bool {
174 self.sys.aria_atomic
175 }
176 pub fn set_aria_atomic(&mut self, value: bool) {
178 self.sys.aria_atomic = value;
179 }
180 pub fn aria_auto_complete(&self) -> std::option::Option<&str> {
182 self.sys.aria_auto_complete.as_deref()
183 }
184 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 pub fn aria_braille_label(&self) -> std::option::Option<&str> {
193 self.sys.aria_braille_label.as_deref()
194 }
195 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 pub fn aria_braille_role_description(&self) -> std::option::Option<&str> {
204 self.sys.aria_braille_role_description.as_deref()
205 }
206 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 pub fn aria_busy(&self) -> bool {
215 self.sys.aria_busy
216 }
217 pub fn set_aria_busy(&mut self, value: bool) {
219 self.sys.aria_busy = value;
220 }
221 pub fn aria_controls_elements(&self) -> std::option::Option<&str> {
223 self.sys.aria_controls_elements.as_deref()
224 }
225 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 pub fn aria_current(&self) -> std::option::Option<&str> {
234 self.sys.aria_current.as_deref()
235 }
236 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 pub fn aria_described_by_elements(&self) -> std::option::Option<&str> {
245 self.sys.aria_described_by_elements.as_deref()
246 }
247 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 pub fn aria_description(&self) -> std::option::Option<&str> {
256 self.sys.aria_description.as_deref()
257 }
258 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 pub fn aria_details_elements(&self) -> std::option::Option<&str> {
267 self.sys.aria_details_elements.as_deref()
268 }
269 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 pub fn aria_disabled(&self) -> bool {
278 self.sys.aria_disabled
279 }
280 pub fn set_aria_disabled(&mut self, value: bool) {
282 self.sys.aria_disabled = value;
283 }
284 pub fn aria_drop_effect(&self) -> std::option::Option<&str> {
286 self.sys.aria_drop_effect.as_deref()
287 }
288 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 pub fn aria_error_message_elements(&self) -> std::option::Option<&str> {
297 self.sys.aria_error_message_elements.as_deref()
298 }
299 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 pub fn aria_flow_to_elements(&self) -> std::option::Option<&str> {
308 self.sys.aria_flow_to_elements.as_deref()
309 }
310 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 pub fn aria_grabbed(&self) -> bool {
319 self.sys.aria_grabbed
320 }
321 pub fn set_aria_grabbed(&mut self, value: bool) {
323 self.sys.aria_grabbed = value;
324 }
325 pub fn aria_has_popup(&self) -> std::option::Option<&str> {
327 self.sys.aria_has_popup.as_deref()
328 }
329 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 pub fn aria_hidden(&self) -> bool {
338 self.sys.aria_hidden
339 }
340 pub fn set_aria_hidden(&mut self, value: bool) {
342 self.sys.aria_hidden = value;
343 }
344 pub fn aria_invalid(&self) -> std::option::Option<&str> {
346 self.sys.aria_invalid.as_deref()
347 }
348 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 pub fn aria_key_shortcuts(&self) -> std::option::Option<&str> {
357 self.sys.aria_key_shortcuts.as_deref()
358 }
359 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 pub fn aria_label(&self) -> std::option::Option<&str> {
368 self.sys.aria_label.as_deref()
369 }
370 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 pub fn aria_labelled_by_elements(&self) -> std::option::Option<&str> {
379 self.sys.aria_labelled_by_elements.as_deref()
380 }
381 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 pub fn aria_live(&self) -> std::option::Option<&str> {
390 self.sys.aria_live.as_deref()
391 }
392 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 pub fn aria_multi_line(&self) -> bool {
401 self.sys.aria_multi_line
402 }
403 pub fn set_aria_multi_line(&mut self, value: bool) {
405 self.sys.aria_multi_line = value;
406 }
407 pub fn aria_owns_elements(&self) -> std::option::Option<&str> {
409 self.sys.aria_owns_elements.as_deref()
410 }
411 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 pub fn aria_placeholder(&self) -> std::option::Option<&str> {
420 self.sys.aria_placeholder.as_deref()
421 }
422 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 pub fn aria_read_only(&self) -> bool {
431 self.sys.aria_read_only
432 }
433 pub fn set_aria_read_only(&mut self, value: bool) {
435 self.sys.aria_read_only = value;
436 }
437 pub fn aria_relevant(&self) -> std::option::Option<&str> {
439 self.sys.aria_relevant.as_deref()
440 }
441 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 pub fn aria_required(&self) -> bool {
450 self.sys.aria_required
451 }
452 pub fn set_aria_required(&mut self, value: bool) {
454 self.sys.aria_required = value;
455 }
456 pub fn aria_role_description(&self) -> std::option::Option<&str> {
458 self.sys.aria_role_description.as_deref()
459 }
460 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 pub fn access_key(&self) -> std::option::Option<&str> {
469 self.sys.access_key.as_deref()
470 }
471 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 pub fn auto_capitalize(&self) -> std::option::Option<&str> {
480 self.sys.auto_capitalize.as_deref()
481 }
482 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 pub fn autofocus(&self) -> bool {
491 self.sys.autofocus
492 }
493 pub fn set_autofocus(&mut self, value: bool) {
495 self.sys.autofocus = value;
496 }
497 pub fn class(&self) -> std::option::Option<&str> {
499 self.sys.class.as_deref()
500 }
501 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 pub fn content_editable(&self) -> std::option::Option<&str> {
510 self.sys.content_editable.as_deref()
511 }
512 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 pub fn direction(&self) -> std::option::Option<&str> {
521 self.sys.direction.as_deref()
522 }
523 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 pub fn draggable(&self) -> bool {
532 self.sys.draggable
533 }
534 pub fn set_draggable(&mut self, value: bool) {
536 self.sys.draggable = value;
537 }
538 pub fn enter_key_hint(&self) -> std::option::Option<&str> {
540 self.sys.enter_key_hint.as_deref()
541 }
542 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 pub fn export_parts(&self) -> std::option::Option<&str> {
551 self.sys.export_parts.as_deref()
552 }
553 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 pub fn hidden(&self) -> std::option::Option<&str> {
562 self.sys.hidden.as_deref()
563 }
564 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 pub fn id(&self) -> std::option::Option<&str> {
573 self.sys.id.as_deref()
574 }
575 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 pub fn inert(&self) -> bool {
584 self.sys.inert
585 }
586 pub fn set_inert(&mut self, value: bool) {
588 self.sys.inert = value;
589 }
590 pub fn input_mode(&self) -> std::option::Option<&str> {
592 self.sys.input_mode.as_deref()
593 }
594 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 pub fn is_(&self) -> std::option::Option<&str> {
603 self.sys.is_.as_deref()
604 }
605 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 pub fn item_id(&self) -> std::option::Option<&str> {
614 self.sys.item_id.as_deref()
615 }
616 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 pub fn item_prop(&self) -> std::option::Option<&str> {
625 self.sys.item_prop.as_deref()
626 }
627 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 pub fn item_ref(&self) -> std::option::Option<&str> {
636 self.sys.item_ref.as_deref()
637 }
638 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 pub fn item_scope(&self) -> std::option::Option<&str> {
647 self.sys.item_scope.as_deref()
648 }
649 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 pub fn item_type(&self) -> std::option::Option<&str> {
658 self.sys.item_type.as_deref()
659 }
660 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 pub fn lang(&self) -> std::option::Option<&str> {
669 self.sys.lang.as_deref()
670 }
671 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 pub fn nonce(&self) -> std::option::Option<&str> {
680 self.sys.nonce.as_deref()
681 }
682 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 pub fn part(&self) -> std::option::Option<&str> {
691 self.sys.part.as_deref()
692 }
693 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 pub fn slot(&self) -> std::option::Option<&str> {
702 self.sys.slot.as_deref()
703 }
704 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 pub fn spellcheck(&self) -> std::option::Option<&str> {
713 self.sys.spellcheck.as_deref()
714 }
715 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 pub fn style(&self) -> std::option::Option<&str> {
724 self.sys.style.as_deref()
725 }
726 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 pub fn tab_index(&self) -> std::option::Option<i64> {
735 self.sys.tab_index
736 }
737 pub fn set_tab_index(&mut self, value: std::option::Option<i64>) {
739 self.sys.tab_index = value;
740 }
741 pub fn title(&self) -> std::option::Option<&str> {
743 self.sys.title.as_deref()
744 }
745 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 pub fn translate(&self) -> bool {
754 self.sys.translate
755 }
756 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 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 pub fn build(&mut self) -> super::element::TextArea {
815 self.element.clone()
816 }
817 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 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 pub fn cols(&mut self, value: i64) -> &mut Self {
836 self.element.set_cols(Some(value));
837 self
838 }
839 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 pub fn disabled(&mut self, value: bool) -> &mut Self {
849 self.element.set_disabled(value);
850 self
851 }
852 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 pub fn max_length(&mut self, value: i64) -> &mut Self {
862 self.element.set_max_length(Some(value));
863 self
864 }
865 pub fn min_length(&mut self, value: i64) -> &mut Self {
867 self.element.set_min_length(Some(value));
868 self
869 }
870 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 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 pub fn read_only(&mut self, value: bool) -> &mut Self {
888 self.element.set_read_only(value);
889 self
890 }
891 pub fn required(&mut self, value: bool) -> &mut Self {
893 self.element.set_required(value);
894 self
895 }
896 pub fn rows(&mut self, value: i64) -> &mut Self {
898 self.element.set_rows(Some(value));
899 self
900 }
901 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 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 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 pub fn aria_atomic(&mut self, value: bool) -> &mut Self {
927 self.element.set_aria_atomic(value);
928 self
929 }
930 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 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 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 pub fn aria_busy(&mut self, value: bool) -> &mut Self {
956 self.element.set_aria_busy(value);
957 self
958 }
959 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 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 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 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 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 pub fn aria_disabled(&mut self, value: bool) -> &mut Self {
1001 self.element.set_aria_disabled(value);
1002 self
1003 }
1004 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 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 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 pub fn aria_grabbed(&mut self, value: bool) -> &mut Self {
1030 self.element.set_aria_grabbed(value);
1031 self
1032 }
1033 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 pub fn aria_hidden(&mut self, value: bool) -> &mut Self {
1043 self.element.set_aria_hidden(value);
1044 self
1045 }
1046 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 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 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 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 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 pub fn aria_multi_line(&mut self, value: bool) -> &mut Self {
1088 self.element.set_aria_multi_line(value);
1089 self
1090 }
1091 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 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 pub fn aria_read_only(&mut self, value: bool) -> &mut Self {
1109 self.element.set_aria_read_only(value);
1110 self
1111 }
1112 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 pub fn aria_required(&mut self, value: bool) -> &mut Self {
1122 self.element.set_aria_required(value);
1123 self
1124 }
1125 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 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 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 pub fn autofocus(&mut self, value: bool) -> &mut Self {
1151 self.element.set_autofocus(value);
1152 self
1153 }
1154 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 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 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 pub fn draggable(&mut self, value: bool) -> &mut Self {
1180 self.element.set_draggable(value);
1181 self
1182 }
1183 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 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 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 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 pub fn inert(&mut self, value: bool) -> &mut Self {
1217 self.element.set_inert(value);
1218 self
1219 }
1220 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 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 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 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 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 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 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 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 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 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 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 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 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 pub fn tab_index(&mut self, value: i64) -> &mut Self {
1326 self.element.set_tab_index(Some(value));
1327 self
1328 }
1329 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 pub fn translate(&mut self, value: bool) -> &mut Self {
1339 self.element.set_translate(value);
1340 self
1341 }
1342 }
1343}