1pub mod element {
2 #[doc(alias = "hgroup")]
6 #[non_exhaustive]
7 #[derive(PartialEq, Clone, Default)]
8 pub struct HeadingGroup {
9 sys: html_sys::sections::HeadingGroup,
10 children: Vec<super::child::HeadingGroupChild>,
11 }
12 impl HeadingGroup {
13 pub fn builder() -> super::builder::HeadingGroupBuilder {
15 super::builder::HeadingGroupBuilder::new(Default::default())
16 }
17 }
18 impl HeadingGroup {
19 pub fn data_map(&self) -> &html_sys::DataMap {
21 &self.sys.data_map
22 }
23 pub fn data_map_mut(&mut self) -> &mut html_sys::DataMap {
25 &mut self.sys.data_map
26 }
27 }
28 impl HeadingGroup {
29 pub fn role(&self) -> std::option::Option<&str> {
31 self.sys.role.as_deref()
32 }
33 pub fn set_role(
35 &mut self,
36 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
37 ) {
38 self.sys.role = value.map(|v| v.into());
39 }
40 pub fn aria_active_descendant_element(&self) -> std::option::Option<&str> {
42 self.sys.aria_active_descendant_element.as_deref()
43 }
44 pub fn set_aria_active_descendant_element(
46 &mut self,
47 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
48 ) {
49 self.sys.aria_active_descendant_element = value.map(|v| v.into());
50 }
51 pub fn aria_atomic(&self) -> bool {
53 self.sys.aria_atomic
54 }
55 pub fn set_aria_atomic(&mut self, value: bool) {
57 self.sys.aria_atomic = value;
58 }
59 pub fn aria_auto_complete(&self) -> std::option::Option<&str> {
61 self.sys.aria_auto_complete.as_deref()
62 }
63 pub fn set_aria_auto_complete(
65 &mut self,
66 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
67 ) {
68 self.sys.aria_auto_complete = value.map(|v| v.into());
69 }
70 pub fn aria_braille_label(&self) -> std::option::Option<&str> {
72 self.sys.aria_braille_label.as_deref()
73 }
74 pub fn set_aria_braille_label(
76 &mut self,
77 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
78 ) {
79 self.sys.aria_braille_label = value.map(|v| v.into());
80 }
81 pub fn aria_braille_role_description(&self) -> std::option::Option<&str> {
83 self.sys.aria_braille_role_description.as_deref()
84 }
85 pub fn set_aria_braille_role_description(
87 &mut self,
88 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
89 ) {
90 self.sys.aria_braille_role_description = value.map(|v| v.into());
91 }
92 pub fn aria_busy(&self) -> bool {
94 self.sys.aria_busy
95 }
96 pub fn set_aria_busy(&mut self, value: bool) {
98 self.sys.aria_busy = value;
99 }
100 pub fn aria_checked(&self) -> std::option::Option<&str> {
102 self.sys.aria_checked.as_deref()
103 }
104 pub fn set_aria_checked(
106 &mut self,
107 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
108 ) {
109 self.sys.aria_checked = value.map(|v| v.into());
110 }
111 pub fn aria_col_count(&self) -> std::option::Option<i64> {
113 self.sys.aria_col_count
114 }
115 pub fn set_aria_col_count(&mut self, value: std::option::Option<i64>) {
117 self.sys.aria_col_count = value;
118 }
119 pub fn aria_col_index(&self) -> std::option::Option<i64> {
121 self.sys.aria_col_index
122 }
123 pub fn set_aria_col_index(&mut self, value: std::option::Option<i64>) {
125 self.sys.aria_col_index = value;
126 }
127 pub fn aria_col_index_text(&self) -> std::option::Option<&str> {
129 self.sys.aria_col_index_text.as_deref()
130 }
131 pub fn set_aria_col_index_text(
133 &mut self,
134 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
135 ) {
136 self.sys.aria_col_index_text = value.map(|v| v.into());
137 }
138 pub fn aria_col_span(&self) -> std::option::Option<i64> {
140 self.sys.aria_col_span
141 }
142 pub fn set_aria_col_span(&mut self, value: std::option::Option<i64>) {
144 self.sys.aria_col_span = value;
145 }
146 pub fn aria_controls_elements(&self) -> std::option::Option<&str> {
148 self.sys.aria_controls_elements.as_deref()
149 }
150 pub fn set_aria_controls_elements(
152 &mut self,
153 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
154 ) {
155 self.sys.aria_controls_elements = value.map(|v| v.into());
156 }
157 pub fn aria_current(&self) -> std::option::Option<&str> {
159 self.sys.aria_current.as_deref()
160 }
161 pub fn set_aria_current(
163 &mut self,
164 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
165 ) {
166 self.sys.aria_current = value.map(|v| v.into());
167 }
168 pub fn aria_described_by_elements(&self) -> std::option::Option<&str> {
170 self.sys.aria_described_by_elements.as_deref()
171 }
172 pub fn set_aria_described_by_elements(
174 &mut self,
175 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
176 ) {
177 self.sys.aria_described_by_elements = value.map(|v| v.into());
178 }
179 pub fn aria_description(&self) -> std::option::Option<&str> {
181 self.sys.aria_description.as_deref()
182 }
183 pub fn set_aria_description(
185 &mut self,
186 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
187 ) {
188 self.sys.aria_description = value.map(|v| v.into());
189 }
190 pub fn aria_details_elements(&self) -> std::option::Option<&str> {
192 self.sys.aria_details_elements.as_deref()
193 }
194 pub fn set_aria_details_elements(
196 &mut self,
197 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
198 ) {
199 self.sys.aria_details_elements = value.map(|v| v.into());
200 }
201 pub fn aria_disabled(&self) -> bool {
203 self.sys.aria_disabled
204 }
205 pub fn set_aria_disabled(&mut self, value: bool) {
207 self.sys.aria_disabled = value;
208 }
209 pub fn aria_drop_effect(&self) -> std::option::Option<&str> {
211 self.sys.aria_drop_effect.as_deref()
212 }
213 pub fn set_aria_drop_effect(
215 &mut self,
216 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
217 ) {
218 self.sys.aria_drop_effect = value.map(|v| v.into());
219 }
220 pub fn aria_error_message_elements(&self) -> std::option::Option<&str> {
222 self.sys.aria_error_message_elements.as_deref()
223 }
224 pub fn set_aria_error_message_elements(
226 &mut self,
227 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
228 ) {
229 self.sys.aria_error_message_elements = value.map(|v| v.into());
230 }
231 pub fn aria_expanded(&self) -> bool {
233 self.sys.aria_expanded
234 }
235 pub fn set_aria_expanded(&mut self, value: bool) {
237 self.sys.aria_expanded = value;
238 }
239 pub fn aria_flow_to_elements(&self) -> std::option::Option<&str> {
241 self.sys.aria_flow_to_elements.as_deref()
242 }
243 pub fn set_aria_flow_to_elements(
245 &mut self,
246 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
247 ) {
248 self.sys.aria_flow_to_elements = value.map(|v| v.into());
249 }
250 pub fn aria_grabbed(&self) -> bool {
252 self.sys.aria_grabbed
253 }
254 pub fn set_aria_grabbed(&mut self, value: bool) {
256 self.sys.aria_grabbed = value;
257 }
258 pub fn aria_has_popup(&self) -> std::option::Option<&str> {
260 self.sys.aria_has_popup.as_deref()
261 }
262 pub fn set_aria_has_popup(
264 &mut self,
265 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
266 ) {
267 self.sys.aria_has_popup = value.map(|v| v.into());
268 }
269 pub fn aria_hidden(&self) -> bool {
271 self.sys.aria_hidden
272 }
273 pub fn set_aria_hidden(&mut self, value: bool) {
275 self.sys.aria_hidden = value;
276 }
277 pub fn aria_invalid(&self) -> std::option::Option<&str> {
279 self.sys.aria_invalid.as_deref()
280 }
281 pub fn set_aria_invalid(
283 &mut self,
284 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
285 ) {
286 self.sys.aria_invalid = value.map(|v| v.into());
287 }
288 pub fn aria_key_shortcuts(&self) -> std::option::Option<&str> {
290 self.sys.aria_key_shortcuts.as_deref()
291 }
292 pub fn set_aria_key_shortcuts(
294 &mut self,
295 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
296 ) {
297 self.sys.aria_key_shortcuts = value.map(|v| v.into());
298 }
299 pub fn aria_label(&self) -> std::option::Option<&str> {
301 self.sys.aria_label.as_deref()
302 }
303 pub fn set_aria_label(
305 &mut self,
306 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
307 ) {
308 self.sys.aria_label = value.map(|v| v.into());
309 }
310 pub fn aria_labelled_by_elements(&self) -> std::option::Option<&str> {
312 self.sys.aria_labelled_by_elements.as_deref()
313 }
314 pub fn set_aria_labelled_by_elements(
316 &mut self,
317 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
318 ) {
319 self.sys.aria_labelled_by_elements = value.map(|v| v.into());
320 }
321 pub fn aria_level(&self) -> std::option::Option<i64> {
323 self.sys.aria_level
324 }
325 pub fn set_aria_level(&mut self, value: std::option::Option<i64>) {
327 self.sys.aria_level = value;
328 }
329 pub fn aria_live(&self) -> std::option::Option<&str> {
331 self.sys.aria_live.as_deref()
332 }
333 pub fn set_aria_live(
335 &mut self,
336 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
337 ) {
338 self.sys.aria_live = value.map(|v| v.into());
339 }
340 pub fn aria_modal(&self) -> bool {
342 self.sys.aria_modal
343 }
344 pub fn set_aria_modal(&mut self, value: bool) {
346 self.sys.aria_modal = value;
347 }
348 pub fn aria_multi_line(&self) -> bool {
350 self.sys.aria_multi_line
351 }
352 pub fn set_aria_multi_line(&mut self, value: bool) {
354 self.sys.aria_multi_line = value;
355 }
356 pub fn aria_multi_selectable(&self) -> bool {
358 self.sys.aria_multi_selectable
359 }
360 pub fn set_aria_multi_selectable(&mut self, value: bool) {
362 self.sys.aria_multi_selectable = value;
363 }
364 pub fn aria_orientation(&self) -> std::option::Option<&str> {
366 self.sys.aria_orientation.as_deref()
367 }
368 pub fn set_aria_orientation(
370 &mut self,
371 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
372 ) {
373 self.sys.aria_orientation = value.map(|v| v.into());
374 }
375 pub fn aria_owns_elements(&self) -> std::option::Option<&str> {
377 self.sys.aria_owns_elements.as_deref()
378 }
379 pub fn set_aria_owns_elements(
381 &mut self,
382 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
383 ) {
384 self.sys.aria_owns_elements = value.map(|v| v.into());
385 }
386 pub fn aria_placeholder(&self) -> std::option::Option<&str> {
388 self.sys.aria_placeholder.as_deref()
389 }
390 pub fn set_aria_placeholder(
392 &mut self,
393 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
394 ) {
395 self.sys.aria_placeholder = value.map(|v| v.into());
396 }
397 pub fn aria_pos_in_set(&self) -> std::option::Option<i64> {
399 self.sys.aria_pos_in_set
400 }
401 pub fn set_aria_pos_in_set(&mut self, value: std::option::Option<i64>) {
403 self.sys.aria_pos_in_set = value;
404 }
405 pub fn aria_pressed(&self) -> std::option::Option<&str> {
407 self.sys.aria_pressed.as_deref()
408 }
409 pub fn set_aria_pressed(
411 &mut self,
412 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
413 ) {
414 self.sys.aria_pressed = value.map(|v| v.into());
415 }
416 pub fn aria_read_only(&self) -> bool {
418 self.sys.aria_read_only
419 }
420 pub fn set_aria_read_only(&mut self, value: bool) {
422 self.sys.aria_read_only = value;
423 }
424 pub fn aria_relevant(&self) -> std::option::Option<&str> {
426 self.sys.aria_relevant.as_deref()
427 }
428 pub fn set_aria_relevant(
430 &mut self,
431 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
432 ) {
433 self.sys.aria_relevant = value.map(|v| v.into());
434 }
435 pub fn aria_required(&self) -> bool {
437 self.sys.aria_required
438 }
439 pub fn set_aria_required(&mut self, value: bool) {
441 self.sys.aria_required = value;
442 }
443 pub fn aria_role_description(&self) -> std::option::Option<&str> {
445 self.sys.aria_role_description.as_deref()
446 }
447 pub fn set_aria_role_description(
449 &mut self,
450 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
451 ) {
452 self.sys.aria_role_description = value.map(|v| v.into());
453 }
454 pub fn aria_row_count(&self) -> std::option::Option<i64> {
456 self.sys.aria_row_count
457 }
458 pub fn set_aria_row_count(&mut self, value: std::option::Option<i64>) {
460 self.sys.aria_row_count = value;
461 }
462 pub fn aria_row_index(&self) -> std::option::Option<i64> {
464 self.sys.aria_row_index
465 }
466 pub fn set_aria_row_index(&mut self, value: std::option::Option<i64>) {
468 self.sys.aria_row_index = value;
469 }
470 pub fn aria_row_index_text(&self) -> std::option::Option<&str> {
472 self.sys.aria_row_index_text.as_deref()
473 }
474 pub fn set_aria_row_index_text(
476 &mut self,
477 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
478 ) {
479 self.sys.aria_row_index_text = value.map(|v| v.into());
480 }
481 pub fn aria_row_span(&self) -> std::option::Option<i64> {
483 self.sys.aria_row_span
484 }
485 pub fn set_aria_row_span(&mut self, value: std::option::Option<i64>) {
487 self.sys.aria_row_span = value;
488 }
489 pub fn aria_selected(&self) -> bool {
491 self.sys.aria_selected
492 }
493 pub fn set_aria_selected(&mut self, value: bool) {
495 self.sys.aria_selected = value;
496 }
497 pub fn aria_set_size(&self) -> std::option::Option<i64> {
499 self.sys.aria_set_size
500 }
501 pub fn set_aria_set_size(&mut self, value: std::option::Option<i64>) {
503 self.sys.aria_set_size = value;
504 }
505 pub fn aria_sort(&self) -> std::option::Option<&str> {
507 self.sys.aria_sort.as_deref()
508 }
509 pub fn set_aria_sort(
511 &mut self,
512 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
513 ) {
514 self.sys.aria_sort = value.map(|v| v.into());
515 }
516 pub fn aria_value_max(&self) -> std::option::Option<f64> {
518 self.sys.aria_value_max
519 }
520 pub fn set_aria_value_max(&mut self, value: std::option::Option<f64>) {
522 self.sys.aria_value_max = value;
523 }
524 pub fn aria_value_min(&self) -> std::option::Option<f64> {
526 self.sys.aria_value_min
527 }
528 pub fn set_aria_value_min(&mut self, value: std::option::Option<f64>) {
530 self.sys.aria_value_min = value;
531 }
532 pub fn aria_value_now(&self) -> std::option::Option<f64> {
534 self.sys.aria_value_now
535 }
536 pub fn set_aria_value_now(&mut self, value: std::option::Option<f64>) {
538 self.sys.aria_value_now = value;
539 }
540 pub fn aria_value_text(&self) -> std::option::Option<&str> {
542 self.sys.aria_value_text.as_deref()
543 }
544 pub fn set_aria_value_text(
546 &mut self,
547 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
548 ) {
549 self.sys.aria_value_text = value.map(|v| v.into());
550 }
551 pub fn access_key(&self) -> std::option::Option<&str> {
553 self.sys.access_key.as_deref()
554 }
555 pub fn set_access_key(
557 &mut self,
558 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
559 ) {
560 self.sys.access_key = value.map(|v| v.into());
561 }
562 pub fn auto_capitalize(&self) -> std::option::Option<&str> {
564 self.sys.auto_capitalize.as_deref()
565 }
566 pub fn set_auto_capitalize(
568 &mut self,
569 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
570 ) {
571 self.sys.auto_capitalize = value.map(|v| v.into());
572 }
573 pub fn autofocus(&self) -> bool {
575 self.sys.autofocus
576 }
577 pub fn set_autofocus(&mut self, value: bool) {
579 self.sys.autofocus = value;
580 }
581 pub fn class(&self) -> std::option::Option<&str> {
583 self.sys.class.as_deref()
584 }
585 pub fn set_class(
587 &mut self,
588 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
589 ) {
590 self.sys.class = value.map(|v| v.into());
591 }
592 pub fn content_editable(&self) -> std::option::Option<&str> {
594 self.sys.content_editable.as_deref()
595 }
596 pub fn set_content_editable(
598 &mut self,
599 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
600 ) {
601 self.sys.content_editable = value.map(|v| v.into());
602 }
603 pub fn direction(&self) -> std::option::Option<&str> {
605 self.sys.direction.as_deref()
606 }
607 pub fn set_direction(
609 &mut self,
610 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
611 ) {
612 self.sys.direction = value.map(|v| v.into());
613 }
614 pub fn draggable(&self) -> bool {
616 self.sys.draggable
617 }
618 pub fn set_draggable(&mut self, value: bool) {
620 self.sys.draggable = value;
621 }
622 pub fn enter_key_hint(&self) -> std::option::Option<&str> {
624 self.sys.enter_key_hint.as_deref()
625 }
626 pub fn set_enter_key_hint(
628 &mut self,
629 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
630 ) {
631 self.sys.enter_key_hint = value.map(|v| v.into());
632 }
633 pub fn export_parts(&self) -> std::option::Option<&str> {
635 self.sys.export_parts.as_deref()
636 }
637 pub fn set_export_parts(
639 &mut self,
640 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
641 ) {
642 self.sys.export_parts = value.map(|v| v.into());
643 }
644 pub fn hidden(&self) -> std::option::Option<&str> {
646 self.sys.hidden.as_deref()
647 }
648 pub fn set_hidden(
650 &mut self,
651 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
652 ) {
653 self.sys.hidden = value.map(|v| v.into());
654 }
655 pub fn id(&self) -> std::option::Option<&str> {
657 self.sys.id.as_deref()
658 }
659 pub fn set_id(
661 &mut self,
662 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
663 ) {
664 self.sys.id = value.map(|v| v.into());
665 }
666 pub fn inert(&self) -> bool {
668 self.sys.inert
669 }
670 pub fn set_inert(&mut self, value: bool) {
672 self.sys.inert = value;
673 }
674 pub fn input_mode(&self) -> std::option::Option<&str> {
676 self.sys.input_mode.as_deref()
677 }
678 pub fn set_input_mode(
680 &mut self,
681 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
682 ) {
683 self.sys.input_mode = value.map(|v| v.into());
684 }
685 pub fn is_(&self) -> std::option::Option<&str> {
687 self.sys.is_.as_deref()
688 }
689 pub fn set_is_(
691 &mut self,
692 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
693 ) {
694 self.sys.is_ = value.map(|v| v.into());
695 }
696 pub fn item_id(&self) -> std::option::Option<&str> {
698 self.sys.item_id.as_deref()
699 }
700 pub fn set_item_id(
702 &mut self,
703 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
704 ) {
705 self.sys.item_id = value.map(|v| v.into());
706 }
707 pub fn item_prop(&self) -> std::option::Option<&str> {
709 self.sys.item_prop.as_deref()
710 }
711 pub fn set_item_prop(
713 &mut self,
714 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
715 ) {
716 self.sys.item_prop = value.map(|v| v.into());
717 }
718 pub fn item_ref(&self) -> std::option::Option<&str> {
720 self.sys.item_ref.as_deref()
721 }
722 pub fn set_item_ref(
724 &mut self,
725 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
726 ) {
727 self.sys.item_ref = value.map(|v| v.into());
728 }
729 pub fn item_scope(&self) -> std::option::Option<&str> {
731 self.sys.item_scope.as_deref()
732 }
733 pub fn set_item_scope(
735 &mut self,
736 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
737 ) {
738 self.sys.item_scope = value.map(|v| v.into());
739 }
740 pub fn item_type(&self) -> std::option::Option<&str> {
742 self.sys.item_type.as_deref()
743 }
744 pub fn set_item_type(
746 &mut self,
747 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
748 ) {
749 self.sys.item_type = value.map(|v| v.into());
750 }
751 pub fn lang(&self) -> std::option::Option<&str> {
753 self.sys.lang.as_deref()
754 }
755 pub fn set_lang(
757 &mut self,
758 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
759 ) {
760 self.sys.lang = value.map(|v| v.into());
761 }
762 pub fn nonce(&self) -> std::option::Option<&str> {
764 self.sys.nonce.as_deref()
765 }
766 pub fn set_nonce(
768 &mut self,
769 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
770 ) {
771 self.sys.nonce = value.map(|v| v.into());
772 }
773 pub fn part(&self) -> std::option::Option<&str> {
775 self.sys.part.as_deref()
776 }
777 pub fn set_part(
779 &mut self,
780 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
781 ) {
782 self.sys.part = value.map(|v| v.into());
783 }
784 pub fn slot(&self) -> std::option::Option<&str> {
786 self.sys.slot.as_deref()
787 }
788 pub fn set_slot(
790 &mut self,
791 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
792 ) {
793 self.sys.slot = value.map(|v| v.into());
794 }
795 pub fn spellcheck(&self) -> std::option::Option<&str> {
797 self.sys.spellcheck.as_deref()
798 }
799 pub fn set_spellcheck(
801 &mut self,
802 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
803 ) {
804 self.sys.spellcheck = value.map(|v| v.into());
805 }
806 pub fn style(&self) -> std::option::Option<&str> {
808 self.sys.style.as_deref()
809 }
810 pub fn set_style(
812 &mut self,
813 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
814 ) {
815 self.sys.style = value.map(|v| v.into());
816 }
817 pub fn tab_index(&self) -> std::option::Option<i64> {
819 self.sys.tab_index
820 }
821 pub fn set_tab_index(&mut self, value: std::option::Option<i64>) {
823 self.sys.tab_index = value;
824 }
825 pub fn title(&self) -> std::option::Option<&str> {
827 self.sys.title.as_deref()
828 }
829 pub fn set_title(
831 &mut self,
832 value: std::option::Option<impl Into<std::borrow::Cow<'static, str>>>,
833 ) {
834 self.sys.title = value.map(|v| v.into());
835 }
836 pub fn translate(&self) -> bool {
838 self.sys.translate
839 }
840 pub fn set_translate(&mut self, value: bool) {
842 self.sys.translate = value;
843 }
844 }
845 impl HeadingGroup {
846 pub fn children(&self) -> &[super::child::HeadingGroupChild] {
848 self.children.as_ref()
849 }
850 pub fn children_mut(&mut self) -> &mut Vec<super::child::HeadingGroupChild> {
852 &mut self.children
853 }
854 }
855 impl crate::Render for HeadingGroup {
856 fn render(
857 &self,
858 f: &mut std::fmt::Formatter<'_>,
859 depth: usize,
860 ) -> std::fmt::Result {
861 write!(f, "{:level$}", "", level = depth * 4)?;
862 html_sys::RenderElement::write_opening_tag(&self.sys, f)?;
863 if !self.children.is_empty() {
864 write!(f, "\n")?;
865 }
866 for el in &self.children {
867 crate::Render::render(&el, f, depth)?;
868 write!(f, "\n")?;
869 }
870 write!(f, "{:level$}", "", level = depth * 4)?;
871 html_sys::RenderElement::write_closing_tag(&self.sys, f)?;
872 Ok(())
873 }
874 }
875 impl std::fmt::Debug for HeadingGroup {
876 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
877 crate::Render::render(self, f, 0)?;
878 Ok(())
879 }
880 }
881 impl std::fmt::Display for HeadingGroup {
882 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
883 html_sys::RenderElement::write_opening_tag(&self.sys, f)?;
884 for el in &self.children {
885 write!(f, "{el}")?;
886 }
887 html_sys::RenderElement::write_closing_tag(&self.sys, f)?;
888 Ok(())
889 }
890 }
891 impl crate::HtmlElement for HeadingGroup {}
892 impl crate::FlowContent for HeadingGroup {}
893 impl crate::HeadingContent for HeadingGroup {}
894 impl crate::PalpableContent for HeadingGroup {}
895 impl std::convert::Into<html_sys::sections::HeadingGroup> for HeadingGroup {
896 fn into(self) -> html_sys::sections::HeadingGroup {
897 self.sys
898 }
899 }
900 impl From<html_sys::sections::HeadingGroup> for HeadingGroup {
901 fn from(sys: html_sys::sections::HeadingGroup) -> Self {
902 Self { sys, children: vec![] }
903 }
904 }
905}
906pub mod child {
907 #[derive(PartialEq, Clone)]
909 pub enum HeadingGroupChild {
910 Heading1(crate::generated::all::Heading1),
912 Heading2(crate::generated::all::Heading2),
914 Heading3(crate::generated::all::Heading3),
916 Heading4(crate::generated::all::Heading4),
918 Heading5(crate::generated::all::Heading5),
920 Heading6(crate::generated::all::Heading6),
922 }
923 impl std::convert::From<crate::generated::all::Heading1> for HeadingGroupChild {
924 fn from(value: crate::generated::all::Heading1) -> Self {
925 Self::Heading1(value)
926 }
927 }
928 impl std::convert::From<crate::generated::all::Heading2> for HeadingGroupChild {
929 fn from(value: crate::generated::all::Heading2) -> Self {
930 Self::Heading2(value)
931 }
932 }
933 impl std::convert::From<crate::generated::all::Heading3> for HeadingGroupChild {
934 fn from(value: crate::generated::all::Heading3) -> Self {
935 Self::Heading3(value)
936 }
937 }
938 impl std::convert::From<crate::generated::all::Heading4> for HeadingGroupChild {
939 fn from(value: crate::generated::all::Heading4) -> Self {
940 Self::Heading4(value)
941 }
942 }
943 impl std::convert::From<crate::generated::all::Heading5> for HeadingGroupChild {
944 fn from(value: crate::generated::all::Heading5) -> Self {
945 Self::Heading5(value)
946 }
947 }
948 impl std::convert::From<crate::generated::all::Heading6> for HeadingGroupChild {
949 fn from(value: crate::generated::all::Heading6) -> Self {
950 Self::Heading6(value)
951 }
952 }
953 impl crate::Render for HeadingGroupChild {
954 fn render(
955 &self,
956 f: &mut std::fmt::Formatter<'_>,
957 depth: usize,
958 ) -> std::fmt::Result {
959 match self {
960 Self::Heading1(el) => crate::Render::render(el, f, depth + 1),
961 Self::Heading2(el) => crate::Render::render(el, f, depth + 1),
962 Self::Heading3(el) => crate::Render::render(el, f, depth + 1),
963 Self::Heading4(el) => crate::Render::render(el, f, depth + 1),
964 Self::Heading5(el) => crate::Render::render(el, f, depth + 1),
965 Self::Heading6(el) => crate::Render::render(el, f, depth + 1),
966 }
967 }
968 }
969 impl std::fmt::Debug for HeadingGroupChild {
970 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
971 crate::Render::render(self, f, 0)?;
972 Ok(())
973 }
974 }
975 impl std::fmt::Display for HeadingGroupChild {
976 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
977 match self {
978 Self::Heading1(el) => write!(f, "{el}"),
979 Self::Heading2(el) => write!(f, "{el}"),
980 Self::Heading3(el) => write!(f, "{el}"),
981 Self::Heading4(el) => write!(f, "{el}"),
982 Self::Heading5(el) => write!(f, "{el}"),
983 Self::Heading6(el) => write!(f, "{el}"),
984 }
985 }
986 }
987}
988pub mod builder {
989 pub struct HeadingGroupBuilder {
991 element: super::element::HeadingGroup,
992 }
993 impl HeadingGroupBuilder {
994 pub(crate) fn new(element: super::element::HeadingGroup) -> Self {
995 Self { element }
996 }
997 pub fn build(&mut self) -> super::element::HeadingGroup {
999 self.element.clone()
1000 }
1001 pub fn data(
1003 &mut self,
1004 data_key: impl Into<std::borrow::Cow<'static, str>>,
1005 value: impl Into<std::borrow::Cow<'static, str>>,
1006 ) -> &mut HeadingGroupBuilder {
1007 self.element.data_map_mut().insert(data_key.into(), value.into());
1008 self
1009 }
1010 pub fn heading_1<F>(&mut self, f: F) -> &mut Self
1012 where
1013 F: for<'a> FnOnce(
1014 &'a mut crate::generated::all::builders::Heading1Builder,
1015 ) -> &'a mut crate::generated::all::builders::Heading1Builder,
1016 {
1017 let ty: crate::generated::all::Heading1 = Default::default();
1018 let mut ty_builder = crate::generated::all::builders::Heading1Builder::new(
1019 ty,
1020 );
1021 (f)(&mut ty_builder);
1022 let ty = ty_builder.build();
1023 self.element.children_mut().push(ty.into());
1024 self
1025 }
1026 pub fn heading_2<F>(&mut self, f: F) -> &mut Self
1028 where
1029 F: for<'a> FnOnce(
1030 &'a mut crate::generated::all::builders::Heading2Builder,
1031 ) -> &'a mut crate::generated::all::builders::Heading2Builder,
1032 {
1033 let ty: crate::generated::all::Heading2 = Default::default();
1034 let mut ty_builder = crate::generated::all::builders::Heading2Builder::new(
1035 ty,
1036 );
1037 (f)(&mut ty_builder);
1038 let ty = ty_builder.build();
1039 self.element.children_mut().push(ty.into());
1040 self
1041 }
1042 pub fn heading_3<F>(&mut self, f: F) -> &mut Self
1044 where
1045 F: for<'a> FnOnce(
1046 &'a mut crate::generated::all::builders::Heading3Builder,
1047 ) -> &'a mut crate::generated::all::builders::Heading3Builder,
1048 {
1049 let ty: crate::generated::all::Heading3 = Default::default();
1050 let mut ty_builder = crate::generated::all::builders::Heading3Builder::new(
1051 ty,
1052 );
1053 (f)(&mut ty_builder);
1054 let ty = ty_builder.build();
1055 self.element.children_mut().push(ty.into());
1056 self
1057 }
1058 pub fn heading_4<F>(&mut self, f: F) -> &mut Self
1060 where
1061 F: for<'a> FnOnce(
1062 &'a mut crate::generated::all::builders::Heading4Builder,
1063 ) -> &'a mut crate::generated::all::builders::Heading4Builder,
1064 {
1065 let ty: crate::generated::all::Heading4 = Default::default();
1066 let mut ty_builder = crate::generated::all::builders::Heading4Builder::new(
1067 ty,
1068 );
1069 (f)(&mut ty_builder);
1070 let ty = ty_builder.build();
1071 self.element.children_mut().push(ty.into());
1072 self
1073 }
1074 pub fn heading_5<F>(&mut self, f: F) -> &mut Self
1076 where
1077 F: for<'a> FnOnce(
1078 &'a mut crate::generated::all::builders::Heading5Builder,
1079 ) -> &'a mut crate::generated::all::builders::Heading5Builder,
1080 {
1081 let ty: crate::generated::all::Heading5 = Default::default();
1082 let mut ty_builder = crate::generated::all::builders::Heading5Builder::new(
1083 ty,
1084 );
1085 (f)(&mut ty_builder);
1086 let ty = ty_builder.build();
1087 self.element.children_mut().push(ty.into());
1088 self
1089 }
1090 pub fn heading_6<F>(&mut self, f: F) -> &mut Self
1092 where
1093 F: for<'a> FnOnce(
1094 &'a mut crate::generated::all::builders::Heading6Builder,
1095 ) -> &'a mut crate::generated::all::builders::Heading6Builder,
1096 {
1097 let ty: crate::generated::all::Heading6 = Default::default();
1098 let mut ty_builder = crate::generated::all::builders::Heading6Builder::new(
1099 ty,
1100 );
1101 (f)(&mut ty_builder);
1102 let ty = ty_builder.build();
1103 self.element.children_mut().push(ty.into());
1104 self
1105 }
1106 pub fn role(
1108 &mut self,
1109 value: impl Into<std::borrow::Cow<'static, str>>,
1110 ) -> &mut Self {
1111 self.element.set_role(Some(value.into()));
1112 self
1113 }
1114 pub fn aria_active_descendant_element(
1116 &mut self,
1117 value: impl Into<std::borrow::Cow<'static, str>>,
1118 ) -> &mut Self {
1119 self.element.set_aria_active_descendant_element(Some(value.into()));
1120 self
1121 }
1122 pub fn aria_atomic(&mut self, value: bool) -> &mut Self {
1124 self.element.set_aria_atomic(value);
1125 self
1126 }
1127 pub fn aria_auto_complete(
1129 &mut self,
1130 value: impl Into<std::borrow::Cow<'static, str>>,
1131 ) -> &mut Self {
1132 self.element.set_aria_auto_complete(Some(value.into()));
1133 self
1134 }
1135 pub fn aria_braille_label(
1137 &mut self,
1138 value: impl Into<std::borrow::Cow<'static, str>>,
1139 ) -> &mut Self {
1140 self.element.set_aria_braille_label(Some(value.into()));
1141 self
1142 }
1143 pub fn aria_braille_role_description(
1145 &mut self,
1146 value: impl Into<std::borrow::Cow<'static, str>>,
1147 ) -> &mut Self {
1148 self.element.set_aria_braille_role_description(Some(value.into()));
1149 self
1150 }
1151 pub fn aria_busy(&mut self, value: bool) -> &mut Self {
1153 self.element.set_aria_busy(value);
1154 self
1155 }
1156 pub fn aria_checked(
1158 &mut self,
1159 value: impl Into<std::borrow::Cow<'static, str>>,
1160 ) -> &mut Self {
1161 self.element.set_aria_checked(Some(value.into()));
1162 self
1163 }
1164 pub fn aria_col_count(&mut self, value: i64) -> &mut Self {
1166 self.element.set_aria_col_count(Some(value));
1167 self
1168 }
1169 pub fn aria_col_index(&mut self, value: i64) -> &mut Self {
1171 self.element.set_aria_col_index(Some(value));
1172 self
1173 }
1174 pub fn aria_col_index_text(
1176 &mut self,
1177 value: impl Into<std::borrow::Cow<'static, str>>,
1178 ) -> &mut Self {
1179 self.element.set_aria_col_index_text(Some(value.into()));
1180 self
1181 }
1182 pub fn aria_col_span(&mut self, value: i64) -> &mut Self {
1184 self.element.set_aria_col_span(Some(value));
1185 self
1186 }
1187 pub fn aria_controls_elements(
1189 &mut self,
1190 value: impl Into<std::borrow::Cow<'static, str>>,
1191 ) -> &mut Self {
1192 self.element.set_aria_controls_elements(Some(value.into()));
1193 self
1194 }
1195 pub fn aria_current(
1197 &mut self,
1198 value: impl Into<std::borrow::Cow<'static, str>>,
1199 ) -> &mut Self {
1200 self.element.set_aria_current(Some(value.into()));
1201 self
1202 }
1203 pub fn aria_described_by_elements(
1205 &mut self,
1206 value: impl Into<std::borrow::Cow<'static, str>>,
1207 ) -> &mut Self {
1208 self.element.set_aria_described_by_elements(Some(value.into()));
1209 self
1210 }
1211 pub fn aria_description(
1213 &mut self,
1214 value: impl Into<std::borrow::Cow<'static, str>>,
1215 ) -> &mut Self {
1216 self.element.set_aria_description(Some(value.into()));
1217 self
1218 }
1219 pub fn aria_details_elements(
1221 &mut self,
1222 value: impl Into<std::borrow::Cow<'static, str>>,
1223 ) -> &mut Self {
1224 self.element.set_aria_details_elements(Some(value.into()));
1225 self
1226 }
1227 pub fn aria_disabled(&mut self, value: bool) -> &mut Self {
1229 self.element.set_aria_disabled(value);
1230 self
1231 }
1232 pub fn aria_drop_effect(
1234 &mut self,
1235 value: impl Into<std::borrow::Cow<'static, str>>,
1236 ) -> &mut Self {
1237 self.element.set_aria_drop_effect(Some(value.into()));
1238 self
1239 }
1240 pub fn aria_error_message_elements(
1242 &mut self,
1243 value: impl Into<std::borrow::Cow<'static, str>>,
1244 ) -> &mut Self {
1245 self.element.set_aria_error_message_elements(Some(value.into()));
1246 self
1247 }
1248 pub fn aria_expanded(&mut self, value: bool) -> &mut Self {
1250 self.element.set_aria_expanded(value);
1251 self
1252 }
1253 pub fn aria_flow_to_elements(
1255 &mut self,
1256 value: impl Into<std::borrow::Cow<'static, str>>,
1257 ) -> &mut Self {
1258 self.element.set_aria_flow_to_elements(Some(value.into()));
1259 self
1260 }
1261 pub fn aria_grabbed(&mut self, value: bool) -> &mut Self {
1263 self.element.set_aria_grabbed(value);
1264 self
1265 }
1266 pub fn aria_has_popup(
1268 &mut self,
1269 value: impl Into<std::borrow::Cow<'static, str>>,
1270 ) -> &mut Self {
1271 self.element.set_aria_has_popup(Some(value.into()));
1272 self
1273 }
1274 pub fn aria_hidden(&mut self, value: bool) -> &mut Self {
1276 self.element.set_aria_hidden(value);
1277 self
1278 }
1279 pub fn aria_invalid(
1281 &mut self,
1282 value: impl Into<std::borrow::Cow<'static, str>>,
1283 ) -> &mut Self {
1284 self.element.set_aria_invalid(Some(value.into()));
1285 self
1286 }
1287 pub fn aria_key_shortcuts(
1289 &mut self,
1290 value: impl Into<std::borrow::Cow<'static, str>>,
1291 ) -> &mut Self {
1292 self.element.set_aria_key_shortcuts(Some(value.into()));
1293 self
1294 }
1295 pub fn aria_label(
1297 &mut self,
1298 value: impl Into<std::borrow::Cow<'static, str>>,
1299 ) -> &mut Self {
1300 self.element.set_aria_label(Some(value.into()));
1301 self
1302 }
1303 pub fn aria_labelled_by_elements(
1305 &mut self,
1306 value: impl Into<std::borrow::Cow<'static, str>>,
1307 ) -> &mut Self {
1308 self.element.set_aria_labelled_by_elements(Some(value.into()));
1309 self
1310 }
1311 pub fn aria_level(&mut self, value: i64) -> &mut Self {
1313 self.element.set_aria_level(Some(value));
1314 self
1315 }
1316 pub fn aria_live(
1318 &mut self,
1319 value: impl Into<std::borrow::Cow<'static, str>>,
1320 ) -> &mut Self {
1321 self.element.set_aria_live(Some(value.into()));
1322 self
1323 }
1324 pub fn aria_modal(&mut self, value: bool) -> &mut Self {
1326 self.element.set_aria_modal(value);
1327 self
1328 }
1329 pub fn aria_multi_line(&mut self, value: bool) -> &mut Self {
1331 self.element.set_aria_multi_line(value);
1332 self
1333 }
1334 pub fn aria_multi_selectable(&mut self, value: bool) -> &mut Self {
1336 self.element.set_aria_multi_selectable(value);
1337 self
1338 }
1339 pub fn aria_orientation(
1341 &mut self,
1342 value: impl Into<std::borrow::Cow<'static, str>>,
1343 ) -> &mut Self {
1344 self.element.set_aria_orientation(Some(value.into()));
1345 self
1346 }
1347 pub fn aria_owns_elements(
1349 &mut self,
1350 value: impl Into<std::borrow::Cow<'static, str>>,
1351 ) -> &mut Self {
1352 self.element.set_aria_owns_elements(Some(value.into()));
1353 self
1354 }
1355 pub fn aria_placeholder(
1357 &mut self,
1358 value: impl Into<std::borrow::Cow<'static, str>>,
1359 ) -> &mut Self {
1360 self.element.set_aria_placeholder(Some(value.into()));
1361 self
1362 }
1363 pub fn aria_pos_in_set(&mut self, value: i64) -> &mut Self {
1365 self.element.set_aria_pos_in_set(Some(value));
1366 self
1367 }
1368 pub fn aria_pressed(
1370 &mut self,
1371 value: impl Into<std::borrow::Cow<'static, str>>,
1372 ) -> &mut Self {
1373 self.element.set_aria_pressed(Some(value.into()));
1374 self
1375 }
1376 pub fn aria_read_only(&mut self, value: bool) -> &mut Self {
1378 self.element.set_aria_read_only(value);
1379 self
1380 }
1381 pub fn aria_relevant(
1383 &mut self,
1384 value: impl Into<std::borrow::Cow<'static, str>>,
1385 ) -> &mut Self {
1386 self.element.set_aria_relevant(Some(value.into()));
1387 self
1388 }
1389 pub fn aria_required(&mut self, value: bool) -> &mut Self {
1391 self.element.set_aria_required(value);
1392 self
1393 }
1394 pub fn aria_role_description(
1396 &mut self,
1397 value: impl Into<std::borrow::Cow<'static, str>>,
1398 ) -> &mut Self {
1399 self.element.set_aria_role_description(Some(value.into()));
1400 self
1401 }
1402 pub fn aria_row_count(&mut self, value: i64) -> &mut Self {
1404 self.element.set_aria_row_count(Some(value));
1405 self
1406 }
1407 pub fn aria_row_index(&mut self, value: i64) -> &mut Self {
1409 self.element.set_aria_row_index(Some(value));
1410 self
1411 }
1412 pub fn aria_row_index_text(
1414 &mut self,
1415 value: impl Into<std::borrow::Cow<'static, str>>,
1416 ) -> &mut Self {
1417 self.element.set_aria_row_index_text(Some(value.into()));
1418 self
1419 }
1420 pub fn aria_row_span(&mut self, value: i64) -> &mut Self {
1422 self.element.set_aria_row_span(Some(value));
1423 self
1424 }
1425 pub fn aria_selected(&mut self, value: bool) -> &mut Self {
1427 self.element.set_aria_selected(value);
1428 self
1429 }
1430 pub fn aria_set_size(&mut self, value: i64) -> &mut Self {
1432 self.element.set_aria_set_size(Some(value));
1433 self
1434 }
1435 pub fn aria_sort(
1437 &mut self,
1438 value: impl Into<std::borrow::Cow<'static, str>>,
1439 ) -> &mut Self {
1440 self.element.set_aria_sort(Some(value.into()));
1441 self
1442 }
1443 pub fn aria_value_max(&mut self, value: f64) -> &mut Self {
1445 self.element.set_aria_value_max(Some(value));
1446 self
1447 }
1448 pub fn aria_value_min(&mut self, value: f64) -> &mut Self {
1450 self.element.set_aria_value_min(Some(value));
1451 self
1452 }
1453 pub fn aria_value_now(&mut self, value: f64) -> &mut Self {
1455 self.element.set_aria_value_now(Some(value));
1456 self
1457 }
1458 pub fn aria_value_text(
1460 &mut self,
1461 value: impl Into<std::borrow::Cow<'static, str>>,
1462 ) -> &mut Self {
1463 self.element.set_aria_value_text(Some(value.into()));
1464 self
1465 }
1466 pub fn access_key(
1468 &mut self,
1469 value: impl Into<std::borrow::Cow<'static, str>>,
1470 ) -> &mut Self {
1471 self.element.set_access_key(Some(value.into()));
1472 self
1473 }
1474 pub fn auto_capitalize(
1476 &mut self,
1477 value: impl Into<std::borrow::Cow<'static, str>>,
1478 ) -> &mut Self {
1479 self.element.set_auto_capitalize(Some(value.into()));
1480 self
1481 }
1482 pub fn autofocus(&mut self, value: bool) -> &mut Self {
1484 self.element.set_autofocus(value);
1485 self
1486 }
1487 pub fn class(
1489 &mut self,
1490 value: impl Into<std::borrow::Cow<'static, str>>,
1491 ) -> &mut Self {
1492 self.element.set_class(Some(value.into()));
1493 self
1494 }
1495 pub fn content_editable(
1497 &mut self,
1498 value: impl Into<std::borrow::Cow<'static, str>>,
1499 ) -> &mut Self {
1500 self.element.set_content_editable(Some(value.into()));
1501 self
1502 }
1503 pub fn direction(
1505 &mut self,
1506 value: impl Into<std::borrow::Cow<'static, str>>,
1507 ) -> &mut Self {
1508 self.element.set_direction(Some(value.into()));
1509 self
1510 }
1511 pub fn draggable(&mut self, value: bool) -> &mut Self {
1513 self.element.set_draggable(value);
1514 self
1515 }
1516 pub fn enter_key_hint(
1518 &mut self,
1519 value: impl Into<std::borrow::Cow<'static, str>>,
1520 ) -> &mut Self {
1521 self.element.set_enter_key_hint(Some(value.into()));
1522 self
1523 }
1524 pub fn export_parts(
1526 &mut self,
1527 value: impl Into<std::borrow::Cow<'static, str>>,
1528 ) -> &mut Self {
1529 self.element.set_export_parts(Some(value.into()));
1530 self
1531 }
1532 pub fn hidden(
1534 &mut self,
1535 value: impl Into<std::borrow::Cow<'static, str>>,
1536 ) -> &mut Self {
1537 self.element.set_hidden(Some(value.into()));
1538 self
1539 }
1540 pub fn id(
1542 &mut self,
1543 value: impl Into<std::borrow::Cow<'static, str>>,
1544 ) -> &mut Self {
1545 self.element.set_id(Some(value.into()));
1546 self
1547 }
1548 pub fn inert(&mut self, value: bool) -> &mut Self {
1550 self.element.set_inert(value);
1551 self
1552 }
1553 pub fn input_mode(
1555 &mut self,
1556 value: impl Into<std::borrow::Cow<'static, str>>,
1557 ) -> &mut Self {
1558 self.element.set_input_mode(Some(value.into()));
1559 self
1560 }
1561 pub fn is_(
1563 &mut self,
1564 value: impl Into<std::borrow::Cow<'static, str>>,
1565 ) -> &mut Self {
1566 self.element.set_is_(Some(value.into()));
1567 self
1568 }
1569 pub fn item_id(
1571 &mut self,
1572 value: impl Into<std::borrow::Cow<'static, str>>,
1573 ) -> &mut Self {
1574 self.element.set_item_id(Some(value.into()));
1575 self
1576 }
1577 pub fn item_prop(
1579 &mut self,
1580 value: impl Into<std::borrow::Cow<'static, str>>,
1581 ) -> &mut Self {
1582 self.element.set_item_prop(Some(value.into()));
1583 self
1584 }
1585 pub fn item_ref(
1587 &mut self,
1588 value: impl Into<std::borrow::Cow<'static, str>>,
1589 ) -> &mut Self {
1590 self.element.set_item_ref(Some(value.into()));
1591 self
1592 }
1593 pub fn item_scope(
1595 &mut self,
1596 value: impl Into<std::borrow::Cow<'static, str>>,
1597 ) -> &mut Self {
1598 self.element.set_item_scope(Some(value.into()));
1599 self
1600 }
1601 pub fn item_type(
1603 &mut self,
1604 value: impl Into<std::borrow::Cow<'static, str>>,
1605 ) -> &mut Self {
1606 self.element.set_item_type(Some(value.into()));
1607 self
1608 }
1609 pub fn lang(
1611 &mut self,
1612 value: impl Into<std::borrow::Cow<'static, str>>,
1613 ) -> &mut Self {
1614 self.element.set_lang(Some(value.into()));
1615 self
1616 }
1617 pub fn nonce(
1619 &mut self,
1620 value: impl Into<std::borrow::Cow<'static, str>>,
1621 ) -> &mut Self {
1622 self.element.set_nonce(Some(value.into()));
1623 self
1624 }
1625 pub fn part(
1627 &mut self,
1628 value: impl Into<std::borrow::Cow<'static, str>>,
1629 ) -> &mut Self {
1630 self.element.set_part(Some(value.into()));
1631 self
1632 }
1633 pub fn slot(
1635 &mut self,
1636 value: impl Into<std::borrow::Cow<'static, str>>,
1637 ) -> &mut Self {
1638 self.element.set_slot(Some(value.into()));
1639 self
1640 }
1641 pub fn spellcheck(
1643 &mut self,
1644 value: impl Into<std::borrow::Cow<'static, str>>,
1645 ) -> &mut Self {
1646 self.element.set_spellcheck(Some(value.into()));
1647 self
1648 }
1649 pub fn style(
1651 &mut self,
1652 value: impl Into<std::borrow::Cow<'static, str>>,
1653 ) -> &mut Self {
1654 self.element.set_style(Some(value.into()));
1655 self
1656 }
1657 pub fn tab_index(&mut self, value: i64) -> &mut Self {
1659 self.element.set_tab_index(Some(value));
1660 self
1661 }
1662 pub fn title(
1664 &mut self,
1665 value: impl Into<std::borrow::Cow<'static, str>>,
1666 ) -> &mut Self {
1667 self.element.set_title(Some(value.into()));
1668 self
1669 }
1670 pub fn translate(&mut self, value: bool) -> &mut Self {
1672 self.element.set_translate(value);
1673 self
1674 }
1675 pub fn push<T>(&mut self, child_el: T) -> &mut Self
1677 where
1678 T: Into<crate::generated::all::children::HeadingGroupChild>,
1679 {
1680 let child_el = child_el.into();
1681 self.element.children_mut().push(child_el);
1682 self
1683 }
1684 pub fn extend<I, T>(&mut self, iter: I) -> &mut Self
1686 where
1687 I: IntoIterator<Item = T>,
1688 T: Into<crate::generated::all::children::HeadingGroupChild>,
1689 {
1690 let iter = iter.into_iter().map(|child_el| child_el.into());
1691 self.element.children_mut().extend(iter);
1692 self
1693 }
1694 }
1695}