html_compose.elements.output_element
1from typing import Literal, Iterable, Mapping 2 3from ..attributes import GlobalAttrs, OutputAttrs 4from ..base_attribute import BaseAttribute 5from ..base_element import BaseElement 6from ..base_types import Resolvable, StrLike 7 8# This file is generated by tools/generate_elements.py 9 10 11class output(BaseElement): 12 """ 13 The 'output' element. 14 Description: Calculated output value 15 Categories: flow phrasing listed labelable resettable form-associated palpable 16 Parents: phrasing 17 Children: phrasing 18 Interface: HTMLOutputElement 19 Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output 20 """ # fmt: skip 21 22 tag = "output" 23 categories = [ 24 "flow", 25 "phrasing", 26 "listed", 27 "labelable", 28 "resettable", 29 "form-associated", 30 "palpable", 31 ] 32 33 class hint(GlobalAttrs, OutputAttrs): 34 """ 35 Type hints for "output" attrs 36 This class holds functions which return BaseAttributes 37 Which you can add to your element attrs 38 """ # fmt: skip 39 40 pass 41 42 _ = hint 43 44 def __init__( 45 self, 46 attrs: Iterable[BaseAttribute] 47 | Mapping[str, Resolvable] 48 | Iterable[ 49 BaseAttribute | Iterable[BaseAttribute] | Mapping[str, Resolvable] 50 ] 51 | None = None, 52 id: StrLike | None = None, 53 class_: Resolvable | None = None, 54 for_: Resolvable | StrLike | None = None, 55 form: StrLike | None = None, 56 name: StrLike | None = None, 57 accesskey: Resolvable | StrLike | None = None, 58 autocapitalize: Literal[ 59 "on", "off", "none", "sentences", "words", "characters" 60 ] 61 | StrLike 62 | None = None, 63 autocorrect: Literal["on", "off"] | StrLike | None = None, 64 autofocus: bool | StrLike | None = None, 65 contenteditable: Literal["true", "plaintext-only", "false"] 66 | StrLike 67 | None = None, 68 dir: Literal["ltr", "rtl", "auto"] | StrLike | None = None, 69 draggable: Literal["true", "false"] | StrLike | None = None, 70 enterkeyhint: Literal[ 71 "enter", "done", "go", "next", "previous", "search", "send" 72 ] 73 | StrLike 74 | None = None, 75 hidden: Literal["until-found", "hidden", ""] | StrLike | None = None, 76 inert: bool | StrLike | None = None, 77 inputmode: Literal[ 78 "none", 79 "text", 80 "tel", 81 "email", 82 "url", 83 "numeric", 84 "decimal", 85 "search", 86 ] 87 | StrLike 88 | None = None, 89 is_: StrLike | None = None, 90 itemid: StrLike | None = None, 91 itemprop: Resolvable | StrLike | None = None, 92 itemref: Resolvable | StrLike | None = None, 93 itemscope: bool | StrLike | None = None, 94 itemtype: Resolvable | StrLike | None = None, 95 lang: StrLike | None = None, 96 nonce: StrLike | None = None, 97 onauxclick: StrLike | None = None, 98 onbeforeinput: StrLike | None = None, 99 onbeforematch: StrLike | None = None, 100 onbeforetoggle: StrLike | None = None, 101 onblur: StrLike | None = None, 102 oncancel: StrLike | None = None, 103 oncanplay: StrLike | None = None, 104 oncanplaythrough: StrLike | None = None, 105 onchange: StrLike | None = None, 106 onclick: StrLike | None = None, 107 onclose: StrLike | None = None, 108 oncontextlost: StrLike | None = None, 109 oncontextmenu: StrLike | None = None, 110 oncontextrestored: StrLike | None = None, 111 oncopy: StrLike | None = None, 112 oncuechange: StrLike | None = None, 113 oncut: StrLike | None = None, 114 ondblclick: StrLike | None = None, 115 ondrag: StrLike | None = None, 116 ondragend: StrLike | None = None, 117 ondragenter: StrLike | None = None, 118 ondragleave: StrLike | None = None, 119 ondragover: StrLike | None = None, 120 ondragstart: StrLike | None = None, 121 ondrop: StrLike | None = None, 122 ondurationchange: StrLike | None = None, 123 onemptied: StrLike | None = None, 124 onended: StrLike | None = None, 125 onerror: StrLike | None = None, 126 onfocus: StrLike | None = None, 127 onformdata: StrLike | None = None, 128 oninput: StrLike | None = None, 129 oninvalid: StrLike | None = None, 130 onkeydown: StrLike | None = None, 131 onkeypress: StrLike | None = None, 132 onkeyup: StrLike | None = None, 133 onload: StrLike | None = None, 134 onloadeddata: StrLike | None = None, 135 onloadedmetadata: StrLike | None = None, 136 onloadstart: StrLike | None = None, 137 onmousedown: StrLike | None = None, 138 onmouseenter: StrLike | None = None, 139 onmouseleave: StrLike | None = None, 140 onmousemove: StrLike | None = None, 141 onmouseout: StrLike | None = None, 142 onmouseover: StrLike | None = None, 143 onmouseup: StrLike | None = None, 144 onpaste: StrLike | None = None, 145 onpause: StrLike | None = None, 146 onplay: StrLike | None = None, 147 onplaying: StrLike | None = None, 148 onprogress: StrLike | None = None, 149 onratechange: StrLike | None = None, 150 onreset: StrLike | None = None, 151 onresize: StrLike | None = None, 152 onscroll: StrLike | None = None, 153 onscrollend: StrLike | None = None, 154 onsecuritypolicyviolation: StrLike | None = None, 155 onseeked: StrLike | None = None, 156 onseeking: StrLike | None = None, 157 onselect: StrLike | None = None, 158 onslotchange: StrLike | None = None, 159 onstalled: StrLike | None = None, 160 onsubmit: StrLike | None = None, 161 onsuspend: StrLike | None = None, 162 ontimeupdate: StrLike | None = None, 163 ontoggle: StrLike | None = None, 164 onvolumechange: StrLike | None = None, 165 onwaiting: StrLike | None = None, 166 onwheel: StrLike | None = None, 167 popover: Literal["auto", "manual"] | StrLike | None = None, 168 slot: StrLike | None = None, 169 spellcheck: Literal["true", "false", ""] | StrLike | None = None, 170 style: Resolvable | Mapping[StrLike, StrLike] | None = None, 171 tabindex: int | StrLike | None = None, 172 title: StrLike | None = None, 173 translate: Literal["yes", "no"] | StrLike | None = None, 174 writingsuggestions: Literal["true", "false", ""] 175 | StrLike 176 | None = None, 177 children: list | None = None, 178 ) -> None: 179 """ 180 Initialize 'output' (Calculated output value) element. 181 Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output 182 183 Args: 184 attrs: 185 A list or dictionary of attributes for the element 186 187 id: 188 The element's ID 189 190 class_: 191 Classes to which the element belongs 192 193 for_: 194 Specifies controls from which the output was calculated 195 196 form: 197 Associates the element with a form element. 198 Value hint: ID* 199 200 name: 201 Name of the element to use for form submission and in the form.elements API 202 203 accesskey: 204 Keyboard shortcut to activate or focus element 205 206 autocapitalize: 207 Recommended autocapitalization behavior (for supported input methods) 208 209 autocorrect: 210 Recommended autocorrection behavior (for supported input methods) 211 212 autofocus: 213 Automatically focus the element when the page is loaded 214 215 contenteditable: 216 Whether the element is editable 217 218 dir: 219 The text directionality of the element 220 221 draggable: 222 Whether the element is draggable 223 224 enterkeyhint: 225 Hint for selecting an enter key action 226 227 hidden: 228 Whether the element is relevant 229 230 inert: 231 Whether the element is inert. 232 233 inputmode: 234 Hint for selecting an input modality 235 236 is_: 237 Creates a customized built-in element. 238 Value hint: Valid custom element name of a defined customized built-in element 239 240 itemid: 241 Global identifier for a microdata item. 242 Value hint: Valid URL potentially surrounded by spaces 243 244 itemprop: 245 Property names of a microdata item 246 247 itemref: 248 Referenced elements 249 250 itemscope: 251 Introduces a microdata item 252 253 itemtype: 254 Item types of a microdata item 255 256 lang: 257 Language of the element. 258 Value hint: Valid BCP 47 language tag or the empty string 259 260 nonce: 261 Cryptographic nonce used in Content Security Policy checks [CSP] 262 263 onauxclick: 264 auxclick event handler. 265 Value hint: Event handler content attribute 266 267 onbeforeinput: 268 beforeinput event handler. 269 Value hint: Event handler content attribute 270 271 onbeforematch: 272 beforematch event handler. 273 Value hint: Event handler content attribute 274 275 onbeforetoggle: 276 beforetoggle event handler. 277 Value hint: Event handler content attribute 278 279 onblur: 280 blur event handler. 281 Value hint: Event handler content attribute 282 283 oncancel: 284 cancel event handler. 285 Value hint: Event handler content attribute 286 287 oncanplay: 288 canplay event handler. 289 Value hint: Event handler content attribute 290 291 oncanplaythrough: 292 canplaythrough event handler. 293 Value hint: Event handler content attribute 294 295 onchange: 296 change event handler. 297 Value hint: Event handler content attribute 298 299 onclick: 300 click event handler. 301 Value hint: Event handler content attribute 302 303 onclose: 304 close event handler. 305 Value hint: Event handler content attribute 306 307 oncontextlost: 308 contextlost event handler. 309 Value hint: Event handler content attribute 310 311 oncontextmenu: 312 contextmenu event handler. 313 Value hint: Event handler content attribute 314 315 oncontextrestored: 316 contextrestored event handler. 317 Value hint: Event handler content attribute 318 319 oncopy: 320 copy event handler. 321 Value hint: Event handler content attribute 322 323 oncuechange: 324 cuechange event handler. 325 Value hint: Event handler content attribute 326 327 oncut: 328 cut event handler. 329 Value hint: Event handler content attribute 330 331 ondblclick: 332 dblclick event handler. 333 Value hint: Event handler content attribute 334 335 ondrag: 336 drag event handler. 337 Value hint: Event handler content attribute 338 339 ondragend: 340 dragend event handler. 341 Value hint: Event handler content attribute 342 343 ondragenter: 344 dragenter event handler. 345 Value hint: Event handler content attribute 346 347 ondragleave: 348 dragleave event handler. 349 Value hint: Event handler content attribute 350 351 ondragover: 352 dragover event handler. 353 Value hint: Event handler content attribute 354 355 ondragstart: 356 dragstart event handler. 357 Value hint: Event handler content attribute 358 359 ondrop: 360 drop event handler. 361 Value hint: Event handler content attribute 362 363 ondurationchange: 364 durationchange event handler. 365 Value hint: Event handler content attribute 366 367 onemptied: 368 emptied event handler. 369 Value hint: Event handler content attribute 370 371 onended: 372 ended event handler. 373 Value hint: Event handler content attribute 374 375 onerror: 376 error event handler. 377 Value hint: Event handler content attribute 378 379 onfocus: 380 focus event handler. 381 Value hint: Event handler content attribute 382 383 onformdata: 384 formdata event handler. 385 Value hint: Event handler content attribute 386 387 oninput: 388 input event handler. 389 Value hint: Event handler content attribute 390 391 oninvalid: 392 invalid event handler. 393 Value hint: Event handler content attribute 394 395 onkeydown: 396 keydown event handler. 397 Value hint: Event handler content attribute 398 399 onkeypress: 400 keypress event handler. 401 Value hint: Event handler content attribute 402 403 onkeyup: 404 keyup event handler. 405 Value hint: Event handler content attribute 406 407 onload: 408 load event handler. 409 Value hint: Event handler content attribute 410 411 onloadeddata: 412 loadeddata event handler. 413 Value hint: Event handler content attribute 414 415 onloadedmetadata: 416 loadedmetadata event handler. 417 Value hint: Event handler content attribute 418 419 onloadstart: 420 loadstart event handler. 421 Value hint: Event handler content attribute 422 423 onmousedown: 424 mousedown event handler. 425 Value hint: Event handler content attribute 426 427 onmouseenter: 428 mouseenter event handler. 429 Value hint: Event handler content attribute 430 431 onmouseleave: 432 mouseleave event handler. 433 Value hint: Event handler content attribute 434 435 onmousemove: 436 mousemove event handler. 437 Value hint: Event handler content attribute 438 439 onmouseout: 440 mouseout event handler. 441 Value hint: Event handler content attribute 442 443 onmouseover: 444 mouseover event handler. 445 Value hint: Event handler content attribute 446 447 onmouseup: 448 mouseup event handler. 449 Value hint: Event handler content attribute 450 451 onpaste: 452 paste event handler. 453 Value hint: Event handler content attribute 454 455 onpause: 456 pause event handler. 457 Value hint: Event handler content attribute 458 459 onplay: 460 play event handler. 461 Value hint: Event handler content attribute 462 463 onplaying: 464 playing event handler. 465 Value hint: Event handler content attribute 466 467 onprogress: 468 progress event handler. 469 Value hint: Event handler content attribute 470 471 onratechange: 472 ratechange event handler. 473 Value hint: Event handler content attribute 474 475 onreset: 476 reset event handler. 477 Value hint: Event handler content attribute 478 479 onresize: 480 resize event handler. 481 Value hint: Event handler content attribute 482 483 onscroll: 484 scroll event handler. 485 Value hint: Event handler content attribute 486 487 onscrollend: 488 scrollend event handler. 489 Value hint: Event handler content attribute 490 491 onsecuritypolicyviolation: 492 securitypolicyviolation event handler. 493 Value hint: Event handler content attribute 494 495 onseeked: 496 seeked event handler. 497 Value hint: Event handler content attribute 498 499 onseeking: 500 seeking event handler. 501 Value hint: Event handler content attribute 502 503 onselect: 504 select event handler. 505 Value hint: Event handler content attribute 506 507 onslotchange: 508 slotchange event handler. 509 Value hint: Event handler content attribute 510 511 onstalled: 512 stalled event handler. 513 Value hint: Event handler content attribute 514 515 onsubmit: 516 submit event handler. 517 Value hint: Event handler content attribute 518 519 onsuspend: 520 suspend event handler. 521 Value hint: Event handler content attribute 522 523 ontimeupdate: 524 timeupdate event handler. 525 Value hint: Event handler content attribute 526 527 ontoggle: 528 toggle event handler. 529 Value hint: Event handler content attribute 530 531 onvolumechange: 532 volumechange event handler. 533 Value hint: Event handler content attribute 534 535 onwaiting: 536 waiting event handler. 537 Value hint: Event handler content attribute 538 539 onwheel: 540 wheel event handler. 541 Value hint: Event handler content attribute 542 543 popover: 544 Makes the element a popover element 545 546 slot: 547 The element's desired slot 548 549 spellcheck: 550 Whether the element is to have its spelling and grammar checked 551 552 style: 553 Presentational and formatting instructions. 554 Value hint: CSS declarations* 555 556 tabindex: 557 Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation 558 559 title: 560 Advisory information for the element 561 562 translate: 563 Whether the element is to be translated when the page is localized 564 565 writingsuggestions: 566 Whether the element can offer writing suggestions or not. 567 568 """ # fmt: skip 569 super().__init__( 570 "output", void_element=False, attrs=attrs, children=children 571 ) 572 if not (id is None or id is False): 573 self._process_attr("id", id) 574 if not (class_ is None or class_ is False): 575 self._process_attr("class", class_) 576 if not (for_ is None or for_ is False): 577 self._process_attr("for", for_) 578 if not (form is None or form is False): 579 self._process_attr("form", form) 580 if not (name is None or name is False): 581 self._process_attr("name", name) 582 if not (accesskey is None or accesskey is False): 583 self._process_attr("accesskey", accesskey) 584 if not (autocapitalize is None or autocapitalize is False): 585 self._process_attr("autocapitalize", autocapitalize) 586 if not (autocorrect is None or autocorrect is False): 587 self._process_attr("autocorrect", autocorrect) 588 if not (autofocus is None or autofocus is False): 589 self._process_attr("autofocus", autofocus) 590 if not (contenteditable is None or contenteditable is False): 591 self._process_attr("contenteditable", contenteditable) 592 if not (dir is None or dir is False): 593 self._process_attr("dir", dir) 594 if not (draggable is None or draggable is False): 595 self._process_attr("draggable", draggable) 596 if not (enterkeyhint is None or enterkeyhint is False): 597 self._process_attr("enterkeyhint", enterkeyhint) 598 if not (hidden is None or hidden is False): 599 self._process_attr("hidden", hidden) 600 if not (inert is None or inert is False): 601 self._process_attr("inert", inert) 602 if not (inputmode is None or inputmode is False): 603 self._process_attr("inputmode", inputmode) 604 if not (is_ is None or is_ is False): 605 self._process_attr("is", is_) 606 if not (itemid is None or itemid is False): 607 self._process_attr("itemid", itemid) 608 if not (itemprop is None or itemprop is False): 609 self._process_attr("itemprop", itemprop) 610 if not (itemref is None or itemref is False): 611 self._process_attr("itemref", itemref) 612 if not (itemscope is None or itemscope is False): 613 self._process_attr("itemscope", itemscope) 614 if not (itemtype is None or itemtype is False): 615 self._process_attr("itemtype", itemtype) 616 if not (lang is None or lang is False): 617 self._process_attr("lang", lang) 618 if not (nonce is None or nonce is False): 619 self._process_attr("nonce", nonce) 620 if not (onauxclick is None or onauxclick is False): 621 self._process_attr("onauxclick", onauxclick) 622 if not (onbeforeinput is None or onbeforeinput is False): 623 self._process_attr("onbeforeinput", onbeforeinput) 624 if not (onbeforematch is None or onbeforematch is False): 625 self._process_attr("onbeforematch", onbeforematch) 626 if not (onbeforetoggle is None or onbeforetoggle is False): 627 self._process_attr("onbeforetoggle", onbeforetoggle) 628 if not (onblur is None or onblur is False): 629 self._process_attr("onblur", onblur) 630 if not (oncancel is None or oncancel is False): 631 self._process_attr("oncancel", oncancel) 632 if not (oncanplay is None or oncanplay is False): 633 self._process_attr("oncanplay", oncanplay) 634 if not (oncanplaythrough is None or oncanplaythrough is False): 635 self._process_attr("oncanplaythrough", oncanplaythrough) 636 if not (onchange is None or onchange is False): 637 self._process_attr("onchange", onchange) 638 if not (onclick is None or onclick is False): 639 self._process_attr("onclick", onclick) 640 if not (onclose is None or onclose is False): 641 self._process_attr("onclose", onclose) 642 if not (oncontextlost is None or oncontextlost is False): 643 self._process_attr("oncontextlost", oncontextlost) 644 if not (oncontextmenu is None or oncontextmenu is False): 645 self._process_attr("oncontextmenu", oncontextmenu) 646 if not (oncontextrestored is None or oncontextrestored is False): 647 self._process_attr("oncontextrestored", oncontextrestored) 648 if not (oncopy is None or oncopy is False): 649 self._process_attr("oncopy", oncopy) 650 if not (oncuechange is None or oncuechange is False): 651 self._process_attr("oncuechange", oncuechange) 652 if not (oncut is None or oncut is False): 653 self._process_attr("oncut", oncut) 654 if not (ondblclick is None or ondblclick is False): 655 self._process_attr("ondblclick", ondblclick) 656 if not (ondrag is None or ondrag is False): 657 self._process_attr("ondrag", ondrag) 658 if not (ondragend is None or ondragend is False): 659 self._process_attr("ondragend", ondragend) 660 if not (ondragenter is None or ondragenter is False): 661 self._process_attr("ondragenter", ondragenter) 662 if not (ondragleave is None or ondragleave is False): 663 self._process_attr("ondragleave", ondragleave) 664 if not (ondragover is None or ondragover is False): 665 self._process_attr("ondragover", ondragover) 666 if not (ondragstart is None or ondragstart is False): 667 self._process_attr("ondragstart", ondragstart) 668 if not (ondrop is None or ondrop is False): 669 self._process_attr("ondrop", ondrop) 670 if not (ondurationchange is None or ondurationchange is False): 671 self._process_attr("ondurationchange", ondurationchange) 672 if not (onemptied is None or onemptied is False): 673 self._process_attr("onemptied", onemptied) 674 if not (onended is None or onended is False): 675 self._process_attr("onended", onended) 676 if not (onerror is None or onerror is False): 677 self._process_attr("onerror", onerror) 678 if not (onfocus is None or onfocus is False): 679 self._process_attr("onfocus", onfocus) 680 if not (onformdata is None or onformdata is False): 681 self._process_attr("onformdata", onformdata) 682 if not (oninput is None or oninput is False): 683 self._process_attr("oninput", oninput) 684 if not (oninvalid is None or oninvalid is False): 685 self._process_attr("oninvalid", oninvalid) 686 if not (onkeydown is None or onkeydown is False): 687 self._process_attr("onkeydown", onkeydown) 688 if not (onkeypress is None or onkeypress is False): 689 self._process_attr("onkeypress", onkeypress) 690 if not (onkeyup is None or onkeyup is False): 691 self._process_attr("onkeyup", onkeyup) 692 if not (onload is None or onload is False): 693 self._process_attr("onload", onload) 694 if not (onloadeddata is None or onloadeddata is False): 695 self._process_attr("onloadeddata", onloadeddata) 696 if not (onloadedmetadata is None or onloadedmetadata is False): 697 self._process_attr("onloadedmetadata", onloadedmetadata) 698 if not (onloadstart is None or onloadstart is False): 699 self._process_attr("onloadstart", onloadstart) 700 if not (onmousedown is None or onmousedown is False): 701 self._process_attr("onmousedown", onmousedown) 702 if not (onmouseenter is None or onmouseenter is False): 703 self._process_attr("onmouseenter", onmouseenter) 704 if not (onmouseleave is None or onmouseleave is False): 705 self._process_attr("onmouseleave", onmouseleave) 706 if not (onmousemove is None or onmousemove is False): 707 self._process_attr("onmousemove", onmousemove) 708 if not (onmouseout is None or onmouseout is False): 709 self._process_attr("onmouseout", onmouseout) 710 if not (onmouseover is None or onmouseover is False): 711 self._process_attr("onmouseover", onmouseover) 712 if not (onmouseup is None or onmouseup is False): 713 self._process_attr("onmouseup", onmouseup) 714 if not (onpaste is None or onpaste is False): 715 self._process_attr("onpaste", onpaste) 716 if not (onpause is None or onpause is False): 717 self._process_attr("onpause", onpause) 718 if not (onplay is None or onplay is False): 719 self._process_attr("onplay", onplay) 720 if not (onplaying is None or onplaying is False): 721 self._process_attr("onplaying", onplaying) 722 if not (onprogress is None or onprogress is False): 723 self._process_attr("onprogress", onprogress) 724 if not (onratechange is None or onratechange is False): 725 self._process_attr("onratechange", onratechange) 726 if not (onreset is None or onreset is False): 727 self._process_attr("onreset", onreset) 728 if not (onresize is None or onresize is False): 729 self._process_attr("onresize", onresize) 730 if not (onscroll is None or onscroll is False): 731 self._process_attr("onscroll", onscroll) 732 if not (onscrollend is None or onscrollend is False): 733 self._process_attr("onscrollend", onscrollend) 734 if not ( 735 onsecuritypolicyviolation is None 736 or onsecuritypolicyviolation is False 737 ): 738 self._process_attr( 739 "onsecuritypolicyviolation", onsecuritypolicyviolation 740 ) 741 if not (onseeked is None or onseeked is False): 742 self._process_attr("onseeked", onseeked) 743 if not (onseeking is None or onseeking is False): 744 self._process_attr("onseeking", onseeking) 745 if not (onselect is None or onselect is False): 746 self._process_attr("onselect", onselect) 747 if not (onslotchange is None or onslotchange is False): 748 self._process_attr("onslotchange", onslotchange) 749 if not (onstalled is None or onstalled is False): 750 self._process_attr("onstalled", onstalled) 751 if not (onsubmit is None or onsubmit is False): 752 self._process_attr("onsubmit", onsubmit) 753 if not (onsuspend is None or onsuspend is False): 754 self._process_attr("onsuspend", onsuspend) 755 if not (ontimeupdate is None or ontimeupdate is False): 756 self._process_attr("ontimeupdate", ontimeupdate) 757 if not (ontoggle is None or ontoggle is False): 758 self._process_attr("ontoggle", ontoggle) 759 if not (onvolumechange is None or onvolumechange is False): 760 self._process_attr("onvolumechange", onvolumechange) 761 if not (onwaiting is None or onwaiting is False): 762 self._process_attr("onwaiting", onwaiting) 763 if not (onwheel is None or onwheel is False): 764 self._process_attr("onwheel", onwheel) 765 if not (popover is None or popover is False): 766 self._process_attr("popover", popover) 767 if not (slot is None or slot is False): 768 self._process_attr("slot", slot) 769 if not (spellcheck is None or spellcheck is False): 770 self._process_attr("spellcheck", spellcheck) 771 if not (style is None or style is False): 772 self._process_attr("style", style) 773 if not (tabindex is None or tabindex is False): 774 self._process_attr("tabindex", tabindex) 775 if not (title is None or title is False): 776 self._process_attr("title", title) 777 if not (translate is None or translate is False): 778 self._process_attr("translate", translate) 779 if not (writingsuggestions is None or writingsuggestions is False): 780 self._process_attr("writingsuggestions", writingsuggestions)
12class output(BaseElement): 13 """ 14 The 'output' element. 15 Description: Calculated output value 16 Categories: flow phrasing listed labelable resettable form-associated palpable 17 Parents: phrasing 18 Children: phrasing 19 Interface: HTMLOutputElement 20 Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output 21 """ # fmt: skip 22 23 tag = "output" 24 categories = [ 25 "flow", 26 "phrasing", 27 "listed", 28 "labelable", 29 "resettable", 30 "form-associated", 31 "palpable", 32 ] 33 34 class hint(GlobalAttrs, OutputAttrs): 35 """ 36 Type hints for "output" attrs 37 This class holds functions which return BaseAttributes 38 Which you can add to your element attrs 39 """ # fmt: skip 40 41 pass 42 43 _ = hint 44 45 def __init__( 46 self, 47 attrs: Iterable[BaseAttribute] 48 | Mapping[str, Resolvable] 49 | Iterable[ 50 BaseAttribute | Iterable[BaseAttribute] | Mapping[str, Resolvable] 51 ] 52 | None = None, 53 id: StrLike | None = None, 54 class_: Resolvable | None = None, 55 for_: Resolvable | StrLike | None = None, 56 form: StrLike | None = None, 57 name: StrLike | None = None, 58 accesskey: Resolvable | StrLike | None = None, 59 autocapitalize: Literal[ 60 "on", "off", "none", "sentences", "words", "characters" 61 ] 62 | StrLike 63 | None = None, 64 autocorrect: Literal["on", "off"] | StrLike | None = None, 65 autofocus: bool | StrLike | None = None, 66 contenteditable: Literal["true", "plaintext-only", "false"] 67 | StrLike 68 | None = None, 69 dir: Literal["ltr", "rtl", "auto"] | StrLike | None = None, 70 draggable: Literal["true", "false"] | StrLike | None = None, 71 enterkeyhint: Literal[ 72 "enter", "done", "go", "next", "previous", "search", "send" 73 ] 74 | StrLike 75 | None = None, 76 hidden: Literal["until-found", "hidden", ""] | StrLike | None = None, 77 inert: bool | StrLike | None = None, 78 inputmode: Literal[ 79 "none", 80 "text", 81 "tel", 82 "email", 83 "url", 84 "numeric", 85 "decimal", 86 "search", 87 ] 88 | StrLike 89 | None = None, 90 is_: StrLike | None = None, 91 itemid: StrLike | None = None, 92 itemprop: Resolvable | StrLike | None = None, 93 itemref: Resolvable | StrLike | None = None, 94 itemscope: bool | StrLike | None = None, 95 itemtype: Resolvable | StrLike | None = None, 96 lang: StrLike | None = None, 97 nonce: StrLike | None = None, 98 onauxclick: StrLike | None = None, 99 onbeforeinput: StrLike | None = None, 100 onbeforematch: StrLike | None = None, 101 onbeforetoggle: StrLike | None = None, 102 onblur: StrLike | None = None, 103 oncancel: StrLike | None = None, 104 oncanplay: StrLike | None = None, 105 oncanplaythrough: StrLike | None = None, 106 onchange: StrLike | None = None, 107 onclick: StrLike | None = None, 108 onclose: StrLike | None = None, 109 oncontextlost: StrLike | None = None, 110 oncontextmenu: StrLike | None = None, 111 oncontextrestored: StrLike | None = None, 112 oncopy: StrLike | None = None, 113 oncuechange: StrLike | None = None, 114 oncut: StrLike | None = None, 115 ondblclick: StrLike | None = None, 116 ondrag: StrLike | None = None, 117 ondragend: StrLike | None = None, 118 ondragenter: StrLike | None = None, 119 ondragleave: StrLike | None = None, 120 ondragover: StrLike | None = None, 121 ondragstart: StrLike | None = None, 122 ondrop: StrLike | None = None, 123 ondurationchange: StrLike | None = None, 124 onemptied: StrLike | None = None, 125 onended: StrLike | None = None, 126 onerror: StrLike | None = None, 127 onfocus: StrLike | None = None, 128 onformdata: StrLike | None = None, 129 oninput: StrLike | None = None, 130 oninvalid: StrLike | None = None, 131 onkeydown: StrLike | None = None, 132 onkeypress: StrLike | None = None, 133 onkeyup: StrLike | None = None, 134 onload: StrLike | None = None, 135 onloadeddata: StrLike | None = None, 136 onloadedmetadata: StrLike | None = None, 137 onloadstart: StrLike | None = None, 138 onmousedown: StrLike | None = None, 139 onmouseenter: StrLike | None = None, 140 onmouseleave: StrLike | None = None, 141 onmousemove: StrLike | None = None, 142 onmouseout: StrLike | None = None, 143 onmouseover: StrLike | None = None, 144 onmouseup: StrLike | None = None, 145 onpaste: StrLike | None = None, 146 onpause: StrLike | None = None, 147 onplay: StrLike | None = None, 148 onplaying: StrLike | None = None, 149 onprogress: StrLike | None = None, 150 onratechange: StrLike | None = None, 151 onreset: StrLike | None = None, 152 onresize: StrLike | None = None, 153 onscroll: StrLike | None = None, 154 onscrollend: StrLike | None = None, 155 onsecuritypolicyviolation: StrLike | None = None, 156 onseeked: StrLike | None = None, 157 onseeking: StrLike | None = None, 158 onselect: StrLike | None = None, 159 onslotchange: StrLike | None = None, 160 onstalled: StrLike | None = None, 161 onsubmit: StrLike | None = None, 162 onsuspend: StrLike | None = None, 163 ontimeupdate: StrLike | None = None, 164 ontoggle: StrLike | None = None, 165 onvolumechange: StrLike | None = None, 166 onwaiting: StrLike | None = None, 167 onwheel: StrLike | None = None, 168 popover: Literal["auto", "manual"] | StrLike | None = None, 169 slot: StrLike | None = None, 170 spellcheck: Literal["true", "false", ""] | StrLike | None = None, 171 style: Resolvable | Mapping[StrLike, StrLike] | None = None, 172 tabindex: int | StrLike | None = None, 173 title: StrLike | None = None, 174 translate: Literal["yes", "no"] | StrLike | None = None, 175 writingsuggestions: Literal["true", "false", ""] 176 | StrLike 177 | None = None, 178 children: list | None = None, 179 ) -> None: 180 """ 181 Initialize 'output' (Calculated output value) element. 182 Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output 183 184 Args: 185 attrs: 186 A list or dictionary of attributes for the element 187 188 id: 189 The element's ID 190 191 class_: 192 Classes to which the element belongs 193 194 for_: 195 Specifies controls from which the output was calculated 196 197 form: 198 Associates the element with a form element. 199 Value hint: ID* 200 201 name: 202 Name of the element to use for form submission and in the form.elements API 203 204 accesskey: 205 Keyboard shortcut to activate or focus element 206 207 autocapitalize: 208 Recommended autocapitalization behavior (for supported input methods) 209 210 autocorrect: 211 Recommended autocorrection behavior (for supported input methods) 212 213 autofocus: 214 Automatically focus the element when the page is loaded 215 216 contenteditable: 217 Whether the element is editable 218 219 dir: 220 The text directionality of the element 221 222 draggable: 223 Whether the element is draggable 224 225 enterkeyhint: 226 Hint for selecting an enter key action 227 228 hidden: 229 Whether the element is relevant 230 231 inert: 232 Whether the element is inert. 233 234 inputmode: 235 Hint for selecting an input modality 236 237 is_: 238 Creates a customized built-in element. 239 Value hint: Valid custom element name of a defined customized built-in element 240 241 itemid: 242 Global identifier for a microdata item. 243 Value hint: Valid URL potentially surrounded by spaces 244 245 itemprop: 246 Property names of a microdata item 247 248 itemref: 249 Referenced elements 250 251 itemscope: 252 Introduces a microdata item 253 254 itemtype: 255 Item types of a microdata item 256 257 lang: 258 Language of the element. 259 Value hint: Valid BCP 47 language tag or the empty string 260 261 nonce: 262 Cryptographic nonce used in Content Security Policy checks [CSP] 263 264 onauxclick: 265 auxclick event handler. 266 Value hint: Event handler content attribute 267 268 onbeforeinput: 269 beforeinput event handler. 270 Value hint: Event handler content attribute 271 272 onbeforematch: 273 beforematch event handler. 274 Value hint: Event handler content attribute 275 276 onbeforetoggle: 277 beforetoggle event handler. 278 Value hint: Event handler content attribute 279 280 onblur: 281 blur event handler. 282 Value hint: Event handler content attribute 283 284 oncancel: 285 cancel event handler. 286 Value hint: Event handler content attribute 287 288 oncanplay: 289 canplay event handler. 290 Value hint: Event handler content attribute 291 292 oncanplaythrough: 293 canplaythrough event handler. 294 Value hint: Event handler content attribute 295 296 onchange: 297 change event handler. 298 Value hint: Event handler content attribute 299 300 onclick: 301 click event handler. 302 Value hint: Event handler content attribute 303 304 onclose: 305 close event handler. 306 Value hint: Event handler content attribute 307 308 oncontextlost: 309 contextlost event handler. 310 Value hint: Event handler content attribute 311 312 oncontextmenu: 313 contextmenu event handler. 314 Value hint: Event handler content attribute 315 316 oncontextrestored: 317 contextrestored event handler. 318 Value hint: Event handler content attribute 319 320 oncopy: 321 copy event handler. 322 Value hint: Event handler content attribute 323 324 oncuechange: 325 cuechange event handler. 326 Value hint: Event handler content attribute 327 328 oncut: 329 cut event handler. 330 Value hint: Event handler content attribute 331 332 ondblclick: 333 dblclick event handler. 334 Value hint: Event handler content attribute 335 336 ondrag: 337 drag event handler. 338 Value hint: Event handler content attribute 339 340 ondragend: 341 dragend event handler. 342 Value hint: Event handler content attribute 343 344 ondragenter: 345 dragenter event handler. 346 Value hint: Event handler content attribute 347 348 ondragleave: 349 dragleave event handler. 350 Value hint: Event handler content attribute 351 352 ondragover: 353 dragover event handler. 354 Value hint: Event handler content attribute 355 356 ondragstart: 357 dragstart event handler. 358 Value hint: Event handler content attribute 359 360 ondrop: 361 drop event handler. 362 Value hint: Event handler content attribute 363 364 ondurationchange: 365 durationchange event handler. 366 Value hint: Event handler content attribute 367 368 onemptied: 369 emptied event handler. 370 Value hint: Event handler content attribute 371 372 onended: 373 ended event handler. 374 Value hint: Event handler content attribute 375 376 onerror: 377 error event handler. 378 Value hint: Event handler content attribute 379 380 onfocus: 381 focus event handler. 382 Value hint: Event handler content attribute 383 384 onformdata: 385 formdata event handler. 386 Value hint: Event handler content attribute 387 388 oninput: 389 input event handler. 390 Value hint: Event handler content attribute 391 392 oninvalid: 393 invalid event handler. 394 Value hint: Event handler content attribute 395 396 onkeydown: 397 keydown event handler. 398 Value hint: Event handler content attribute 399 400 onkeypress: 401 keypress event handler. 402 Value hint: Event handler content attribute 403 404 onkeyup: 405 keyup event handler. 406 Value hint: Event handler content attribute 407 408 onload: 409 load event handler. 410 Value hint: Event handler content attribute 411 412 onloadeddata: 413 loadeddata event handler. 414 Value hint: Event handler content attribute 415 416 onloadedmetadata: 417 loadedmetadata event handler. 418 Value hint: Event handler content attribute 419 420 onloadstart: 421 loadstart event handler. 422 Value hint: Event handler content attribute 423 424 onmousedown: 425 mousedown event handler. 426 Value hint: Event handler content attribute 427 428 onmouseenter: 429 mouseenter event handler. 430 Value hint: Event handler content attribute 431 432 onmouseleave: 433 mouseleave event handler. 434 Value hint: Event handler content attribute 435 436 onmousemove: 437 mousemove event handler. 438 Value hint: Event handler content attribute 439 440 onmouseout: 441 mouseout event handler. 442 Value hint: Event handler content attribute 443 444 onmouseover: 445 mouseover event handler. 446 Value hint: Event handler content attribute 447 448 onmouseup: 449 mouseup event handler. 450 Value hint: Event handler content attribute 451 452 onpaste: 453 paste event handler. 454 Value hint: Event handler content attribute 455 456 onpause: 457 pause event handler. 458 Value hint: Event handler content attribute 459 460 onplay: 461 play event handler. 462 Value hint: Event handler content attribute 463 464 onplaying: 465 playing event handler. 466 Value hint: Event handler content attribute 467 468 onprogress: 469 progress event handler. 470 Value hint: Event handler content attribute 471 472 onratechange: 473 ratechange event handler. 474 Value hint: Event handler content attribute 475 476 onreset: 477 reset event handler. 478 Value hint: Event handler content attribute 479 480 onresize: 481 resize event handler. 482 Value hint: Event handler content attribute 483 484 onscroll: 485 scroll event handler. 486 Value hint: Event handler content attribute 487 488 onscrollend: 489 scrollend event handler. 490 Value hint: Event handler content attribute 491 492 onsecuritypolicyviolation: 493 securitypolicyviolation event handler. 494 Value hint: Event handler content attribute 495 496 onseeked: 497 seeked event handler. 498 Value hint: Event handler content attribute 499 500 onseeking: 501 seeking event handler. 502 Value hint: Event handler content attribute 503 504 onselect: 505 select event handler. 506 Value hint: Event handler content attribute 507 508 onslotchange: 509 slotchange event handler. 510 Value hint: Event handler content attribute 511 512 onstalled: 513 stalled event handler. 514 Value hint: Event handler content attribute 515 516 onsubmit: 517 submit event handler. 518 Value hint: Event handler content attribute 519 520 onsuspend: 521 suspend event handler. 522 Value hint: Event handler content attribute 523 524 ontimeupdate: 525 timeupdate event handler. 526 Value hint: Event handler content attribute 527 528 ontoggle: 529 toggle event handler. 530 Value hint: Event handler content attribute 531 532 onvolumechange: 533 volumechange event handler. 534 Value hint: Event handler content attribute 535 536 onwaiting: 537 waiting event handler. 538 Value hint: Event handler content attribute 539 540 onwheel: 541 wheel event handler. 542 Value hint: Event handler content attribute 543 544 popover: 545 Makes the element a popover element 546 547 slot: 548 The element's desired slot 549 550 spellcheck: 551 Whether the element is to have its spelling and grammar checked 552 553 style: 554 Presentational and formatting instructions. 555 Value hint: CSS declarations* 556 557 tabindex: 558 Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation 559 560 title: 561 Advisory information for the element 562 563 translate: 564 Whether the element is to be translated when the page is localized 565 566 writingsuggestions: 567 Whether the element can offer writing suggestions or not. 568 569 """ # fmt: skip 570 super().__init__( 571 "output", void_element=False, attrs=attrs, children=children 572 ) 573 if not (id is None or id is False): 574 self._process_attr("id", id) 575 if not (class_ is None or class_ is False): 576 self._process_attr("class", class_) 577 if not (for_ is None or for_ is False): 578 self._process_attr("for", for_) 579 if not (form is None or form is False): 580 self._process_attr("form", form) 581 if not (name is None or name is False): 582 self._process_attr("name", name) 583 if not (accesskey is None or accesskey is False): 584 self._process_attr("accesskey", accesskey) 585 if not (autocapitalize is None or autocapitalize is False): 586 self._process_attr("autocapitalize", autocapitalize) 587 if not (autocorrect is None or autocorrect is False): 588 self._process_attr("autocorrect", autocorrect) 589 if not (autofocus is None or autofocus is False): 590 self._process_attr("autofocus", autofocus) 591 if not (contenteditable is None or contenteditable is False): 592 self._process_attr("contenteditable", contenteditable) 593 if not (dir is None or dir is False): 594 self._process_attr("dir", dir) 595 if not (draggable is None or draggable is False): 596 self._process_attr("draggable", draggable) 597 if not (enterkeyhint is None or enterkeyhint is False): 598 self._process_attr("enterkeyhint", enterkeyhint) 599 if not (hidden is None or hidden is False): 600 self._process_attr("hidden", hidden) 601 if not (inert is None or inert is False): 602 self._process_attr("inert", inert) 603 if not (inputmode is None or inputmode is False): 604 self._process_attr("inputmode", inputmode) 605 if not (is_ is None or is_ is False): 606 self._process_attr("is", is_) 607 if not (itemid is None or itemid is False): 608 self._process_attr("itemid", itemid) 609 if not (itemprop is None or itemprop is False): 610 self._process_attr("itemprop", itemprop) 611 if not (itemref is None or itemref is False): 612 self._process_attr("itemref", itemref) 613 if not (itemscope is None or itemscope is False): 614 self._process_attr("itemscope", itemscope) 615 if not (itemtype is None or itemtype is False): 616 self._process_attr("itemtype", itemtype) 617 if not (lang is None or lang is False): 618 self._process_attr("lang", lang) 619 if not (nonce is None or nonce is False): 620 self._process_attr("nonce", nonce) 621 if not (onauxclick is None or onauxclick is False): 622 self._process_attr("onauxclick", onauxclick) 623 if not (onbeforeinput is None or onbeforeinput is False): 624 self._process_attr("onbeforeinput", onbeforeinput) 625 if not (onbeforematch is None or onbeforematch is False): 626 self._process_attr("onbeforematch", onbeforematch) 627 if not (onbeforetoggle is None or onbeforetoggle is False): 628 self._process_attr("onbeforetoggle", onbeforetoggle) 629 if not (onblur is None or onblur is False): 630 self._process_attr("onblur", onblur) 631 if not (oncancel is None or oncancel is False): 632 self._process_attr("oncancel", oncancel) 633 if not (oncanplay is None or oncanplay is False): 634 self._process_attr("oncanplay", oncanplay) 635 if not (oncanplaythrough is None or oncanplaythrough is False): 636 self._process_attr("oncanplaythrough", oncanplaythrough) 637 if not (onchange is None or onchange is False): 638 self._process_attr("onchange", onchange) 639 if not (onclick is None or onclick is False): 640 self._process_attr("onclick", onclick) 641 if not (onclose is None or onclose is False): 642 self._process_attr("onclose", onclose) 643 if not (oncontextlost is None or oncontextlost is False): 644 self._process_attr("oncontextlost", oncontextlost) 645 if not (oncontextmenu is None or oncontextmenu is False): 646 self._process_attr("oncontextmenu", oncontextmenu) 647 if not (oncontextrestored is None or oncontextrestored is False): 648 self._process_attr("oncontextrestored", oncontextrestored) 649 if not (oncopy is None or oncopy is False): 650 self._process_attr("oncopy", oncopy) 651 if not (oncuechange is None or oncuechange is False): 652 self._process_attr("oncuechange", oncuechange) 653 if not (oncut is None or oncut is False): 654 self._process_attr("oncut", oncut) 655 if not (ondblclick is None or ondblclick is False): 656 self._process_attr("ondblclick", ondblclick) 657 if not (ondrag is None or ondrag is False): 658 self._process_attr("ondrag", ondrag) 659 if not (ondragend is None or ondragend is False): 660 self._process_attr("ondragend", ondragend) 661 if not (ondragenter is None or ondragenter is False): 662 self._process_attr("ondragenter", ondragenter) 663 if not (ondragleave is None or ondragleave is False): 664 self._process_attr("ondragleave", ondragleave) 665 if not (ondragover is None or ondragover is False): 666 self._process_attr("ondragover", ondragover) 667 if not (ondragstart is None or ondragstart is False): 668 self._process_attr("ondragstart", ondragstart) 669 if not (ondrop is None or ondrop is False): 670 self._process_attr("ondrop", ondrop) 671 if not (ondurationchange is None or ondurationchange is False): 672 self._process_attr("ondurationchange", ondurationchange) 673 if not (onemptied is None or onemptied is False): 674 self._process_attr("onemptied", onemptied) 675 if not (onended is None or onended is False): 676 self._process_attr("onended", onended) 677 if not (onerror is None or onerror is False): 678 self._process_attr("onerror", onerror) 679 if not (onfocus is None or onfocus is False): 680 self._process_attr("onfocus", onfocus) 681 if not (onformdata is None or onformdata is False): 682 self._process_attr("onformdata", onformdata) 683 if not (oninput is None or oninput is False): 684 self._process_attr("oninput", oninput) 685 if not (oninvalid is None or oninvalid is False): 686 self._process_attr("oninvalid", oninvalid) 687 if not (onkeydown is None or onkeydown is False): 688 self._process_attr("onkeydown", onkeydown) 689 if not (onkeypress is None or onkeypress is False): 690 self._process_attr("onkeypress", onkeypress) 691 if not (onkeyup is None or onkeyup is False): 692 self._process_attr("onkeyup", onkeyup) 693 if not (onload is None or onload is False): 694 self._process_attr("onload", onload) 695 if not (onloadeddata is None or onloadeddata is False): 696 self._process_attr("onloadeddata", onloadeddata) 697 if not (onloadedmetadata is None or onloadedmetadata is False): 698 self._process_attr("onloadedmetadata", onloadedmetadata) 699 if not (onloadstart is None or onloadstart is False): 700 self._process_attr("onloadstart", onloadstart) 701 if not (onmousedown is None or onmousedown is False): 702 self._process_attr("onmousedown", onmousedown) 703 if not (onmouseenter is None or onmouseenter is False): 704 self._process_attr("onmouseenter", onmouseenter) 705 if not (onmouseleave is None or onmouseleave is False): 706 self._process_attr("onmouseleave", onmouseleave) 707 if not (onmousemove is None or onmousemove is False): 708 self._process_attr("onmousemove", onmousemove) 709 if not (onmouseout is None or onmouseout is False): 710 self._process_attr("onmouseout", onmouseout) 711 if not (onmouseover is None or onmouseover is False): 712 self._process_attr("onmouseover", onmouseover) 713 if not (onmouseup is None or onmouseup is False): 714 self._process_attr("onmouseup", onmouseup) 715 if not (onpaste is None or onpaste is False): 716 self._process_attr("onpaste", onpaste) 717 if not (onpause is None or onpause is False): 718 self._process_attr("onpause", onpause) 719 if not (onplay is None or onplay is False): 720 self._process_attr("onplay", onplay) 721 if not (onplaying is None or onplaying is False): 722 self._process_attr("onplaying", onplaying) 723 if not (onprogress is None or onprogress is False): 724 self._process_attr("onprogress", onprogress) 725 if not (onratechange is None or onratechange is False): 726 self._process_attr("onratechange", onratechange) 727 if not (onreset is None or onreset is False): 728 self._process_attr("onreset", onreset) 729 if not (onresize is None or onresize is False): 730 self._process_attr("onresize", onresize) 731 if not (onscroll is None or onscroll is False): 732 self._process_attr("onscroll", onscroll) 733 if not (onscrollend is None or onscrollend is False): 734 self._process_attr("onscrollend", onscrollend) 735 if not ( 736 onsecuritypolicyviolation is None 737 or onsecuritypolicyviolation is False 738 ): 739 self._process_attr( 740 "onsecuritypolicyviolation", onsecuritypolicyviolation 741 ) 742 if not (onseeked is None or onseeked is False): 743 self._process_attr("onseeked", onseeked) 744 if not (onseeking is None or onseeking is False): 745 self._process_attr("onseeking", onseeking) 746 if not (onselect is None or onselect is False): 747 self._process_attr("onselect", onselect) 748 if not (onslotchange is None or onslotchange is False): 749 self._process_attr("onslotchange", onslotchange) 750 if not (onstalled is None or onstalled is False): 751 self._process_attr("onstalled", onstalled) 752 if not (onsubmit is None or onsubmit is False): 753 self._process_attr("onsubmit", onsubmit) 754 if not (onsuspend is None or onsuspend is False): 755 self._process_attr("onsuspend", onsuspend) 756 if not (ontimeupdate is None or ontimeupdate is False): 757 self._process_attr("ontimeupdate", ontimeupdate) 758 if not (ontoggle is None or ontoggle is False): 759 self._process_attr("ontoggle", ontoggle) 760 if not (onvolumechange is None or onvolumechange is False): 761 self._process_attr("onvolumechange", onvolumechange) 762 if not (onwaiting is None or onwaiting is False): 763 self._process_attr("onwaiting", onwaiting) 764 if not (onwheel is None or onwheel is False): 765 self._process_attr("onwheel", onwheel) 766 if not (popover is None or popover is False): 767 self._process_attr("popover", popover) 768 if not (slot is None or slot is False): 769 self._process_attr("slot", slot) 770 if not (spellcheck is None or spellcheck is False): 771 self._process_attr("spellcheck", spellcheck) 772 if not (style is None or style is False): 773 self._process_attr("style", style) 774 if not (tabindex is None or tabindex is False): 775 self._process_attr("tabindex", tabindex) 776 if not (title is None or title is False): 777 self._process_attr("title", title) 778 if not (translate is None or translate is False): 779 self._process_attr("translate", translate) 780 if not (writingsuggestions is None or writingsuggestions is False): 781 self._process_attr("writingsuggestions", writingsuggestions)
The 'output' element.
Description: Calculated output value
Categories: flow phrasing listed labelable resettable form-associated palpable
Parents: phrasing
Children: phrasing
Interface: HTMLOutputElement
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output
output( attrs: Union[Iterable[html_compose.base_attribute.BaseAttribute], Mapping[str, Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]]], Iterable[Union[html_compose.base_attribute.BaseAttribute, Iterable[html_compose.base_attribute.BaseAttribute], Mapping[str, Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]]]]], NoneType] = None, id: str | float | int | bool | None = None, class_: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, for_: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, form: str | float | int | bool | None = None, name: str | float | int | bool | None = None, accesskey: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, autocapitalize: Union[Literal['on', 'off', 'none', 'sentences', 'words', 'characters'], str, float, int, bool, NoneType] = None, autocorrect: Union[Literal['on', 'off'], str, float, int, bool, NoneType] = None, autofocus: bool | str | float | int | None = None, contenteditable: Union[Literal['true', 'plaintext-only', 'false'], str, float, int, bool, NoneType] = None, dir: Union[Literal['ltr', 'rtl', 'auto'], str, float, int, bool, NoneType] = None, draggable: Union[Literal['true', 'false'], str, float, int, bool, NoneType] = None, enterkeyhint: Union[Literal['enter', 'done', 'go', 'next', 'previous', 'search', 'send'], str, float, int, bool, NoneType] = None, hidden: Union[Literal['until-found', 'hidden', ''], str, float, int, bool, NoneType] = None, inert: bool | str | float | int | None = None, inputmode: Union[Literal['none', 'text', 'tel', 'email', 'url', 'numeric', 'decimal', 'search'], str, float, int, bool, NoneType] = None, is_: str | float | int | bool | None = None, itemid: str | float | int | bool | None = None, itemprop: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, itemref: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, itemscope: bool | str | float | int | None = None, itemtype: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]] = None, lang: str | float | int | bool | None = None, nonce: str | float | int | bool | None = None, onauxclick: str | float | int | bool | None = None, onbeforeinput: str | float | int | bool | None = None, onbeforematch: str | float | int | bool | None = None, onbeforetoggle: str | float | int | bool | None = None, onblur: str | float | int | bool | None = None, oncancel: str | float | int | bool | None = None, oncanplay: str | float | int | bool | None = None, oncanplaythrough: str | float | int | bool | None = None, onchange: str | float | int | bool | None = None, onclick: str | float | int | bool | None = None, onclose: str | float | int | bool | None = None, oncontextlost: str | float | int | bool | None = None, oncontextmenu: str | float | int | bool | None = None, oncontextrestored: str | float | int | bool | None = None, oncopy: str | float | int | bool | None = None, oncuechange: str | float | int | bool | None = None, oncut: str | float | int | bool | None = None, ondblclick: str | float | int | bool | None = None, ondrag: str | float | int | bool | None = None, ondragend: str | float | int | bool | None = None, ondragenter: str | float | int | bool | None = None, ondragleave: str | float | int | bool | None = None, ondragover: str | float | int | bool | None = None, ondragstart: str | float | int | bool | None = None, ondrop: str | float | int | bool | None = None, ondurationchange: str | float | int | bool | None = None, onemptied: str | float | int | bool | None = None, onended: str | float | int | bool | None = None, onerror: str | float | int | bool | None = None, onfocus: str | float | int | bool | None = None, onformdata: str | float | int | bool | None = None, oninput: str | float | int | bool | None = None, oninvalid: str | float | int | bool | None = None, onkeydown: str | float | int | bool | None = None, onkeypress: str | float | int | bool | None = None, onkeyup: str | float | int | bool | None = None, onload: str | float | int | bool | None = None, onloadeddata: str | float | int | bool | None = None, onloadedmetadata: str | float | int | bool | None = None, onloadstart: str | float | int | bool | None = None, onmousedown: str | float | int | bool | None = None, onmouseenter: str | float | int | bool | None = None, onmouseleave: str | float | int | bool | None = None, onmousemove: str | float | int | bool | None = None, onmouseout: str | float | int | bool | None = None, onmouseover: str | float | int | bool | None = None, onmouseup: str | float | int | bool | None = None, onpaste: str | float | int | bool | None = None, onpause: str | float | int | bool | None = None, onplay: str | float | int | bool | None = None, onplaying: str | float | int | bool | None = None, onprogress: str | float | int | bool | None = None, onratechange: str | float | int | bool | None = None, onreset: str | float | int | bool | None = None, onresize: str | float | int | bool | None = None, onscroll: str | float | int | bool | None = None, onscrollend: str | float | int | bool | None = None, onsecuritypolicyviolation: str | float | int | bool | None = None, onseeked: str | float | int | bool | None = None, onseeking: str | float | int | bool | None = None, onselect: str | float | int | bool | None = None, onslotchange: str | float | int | bool | None = None, onstalled: str | float | int | bool | None = None, onsubmit: str | float | int | bool | None = None, onsuspend: str | float | int | bool | None = None, ontimeupdate: str | float | int | bool | None = None, ontoggle: str | float | int | bool | None = None, onvolumechange: str | float | int | bool | None = None, onwaiting: str | float | int | bool | None = None, onwheel: str | float | int | bool | None = None, popover: Union[Literal['auto', 'manual'], str, float, int, bool, NoneType] = None, slot: str | float | int | bool | None = None, spellcheck: Union[Literal['true', 'false', ''], str, float, int, bool, NoneType] = None, style: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool], Mapping[str | float | int | bool, str | float | int | bool]] = None, tabindex: int | str | float | bool | None = None, title: str | float | int | bool | None = None, translate: Union[Literal['yes', 'no'], str, float, int, bool, NoneType] = None, writingsuggestions: Union[Literal['true', 'false', ''], str, float, int, bool, NoneType] = None, children: list | None = None)
45 def __init__( 46 self, 47 attrs: Iterable[BaseAttribute] 48 | Mapping[str, Resolvable] 49 | Iterable[ 50 BaseAttribute | Iterable[BaseAttribute] | Mapping[str, Resolvable] 51 ] 52 | None = None, 53 id: StrLike | None = None, 54 class_: Resolvable | None = None, 55 for_: Resolvable | StrLike | None = None, 56 form: StrLike | None = None, 57 name: StrLike | None = None, 58 accesskey: Resolvable | StrLike | None = None, 59 autocapitalize: Literal[ 60 "on", "off", "none", "sentences", "words", "characters" 61 ] 62 | StrLike 63 | None = None, 64 autocorrect: Literal["on", "off"] | StrLike | None = None, 65 autofocus: bool | StrLike | None = None, 66 contenteditable: Literal["true", "plaintext-only", "false"] 67 | StrLike 68 | None = None, 69 dir: Literal["ltr", "rtl", "auto"] | StrLike | None = None, 70 draggable: Literal["true", "false"] | StrLike | None = None, 71 enterkeyhint: Literal[ 72 "enter", "done", "go", "next", "previous", "search", "send" 73 ] 74 | StrLike 75 | None = None, 76 hidden: Literal["until-found", "hidden", ""] | StrLike | None = None, 77 inert: bool | StrLike | None = None, 78 inputmode: Literal[ 79 "none", 80 "text", 81 "tel", 82 "email", 83 "url", 84 "numeric", 85 "decimal", 86 "search", 87 ] 88 | StrLike 89 | None = None, 90 is_: StrLike | None = None, 91 itemid: StrLike | None = None, 92 itemprop: Resolvable | StrLike | None = None, 93 itemref: Resolvable | StrLike | None = None, 94 itemscope: bool | StrLike | None = None, 95 itemtype: Resolvable | StrLike | None = None, 96 lang: StrLike | None = None, 97 nonce: StrLike | None = None, 98 onauxclick: StrLike | None = None, 99 onbeforeinput: StrLike | None = None, 100 onbeforematch: StrLike | None = None, 101 onbeforetoggle: StrLike | None = None, 102 onblur: StrLike | None = None, 103 oncancel: StrLike | None = None, 104 oncanplay: StrLike | None = None, 105 oncanplaythrough: StrLike | None = None, 106 onchange: StrLike | None = None, 107 onclick: StrLike | None = None, 108 onclose: StrLike | None = None, 109 oncontextlost: StrLike | None = None, 110 oncontextmenu: StrLike | None = None, 111 oncontextrestored: StrLike | None = None, 112 oncopy: StrLike | None = None, 113 oncuechange: StrLike | None = None, 114 oncut: StrLike | None = None, 115 ondblclick: StrLike | None = None, 116 ondrag: StrLike | None = None, 117 ondragend: StrLike | None = None, 118 ondragenter: StrLike | None = None, 119 ondragleave: StrLike | None = None, 120 ondragover: StrLike | None = None, 121 ondragstart: StrLike | None = None, 122 ondrop: StrLike | None = None, 123 ondurationchange: StrLike | None = None, 124 onemptied: StrLike | None = None, 125 onended: StrLike | None = None, 126 onerror: StrLike | None = None, 127 onfocus: StrLike | None = None, 128 onformdata: StrLike | None = None, 129 oninput: StrLike | None = None, 130 oninvalid: StrLike | None = None, 131 onkeydown: StrLike | None = None, 132 onkeypress: StrLike | None = None, 133 onkeyup: StrLike | None = None, 134 onload: StrLike | None = None, 135 onloadeddata: StrLike | None = None, 136 onloadedmetadata: StrLike | None = None, 137 onloadstart: StrLike | None = None, 138 onmousedown: StrLike | None = None, 139 onmouseenter: StrLike | None = None, 140 onmouseleave: StrLike | None = None, 141 onmousemove: StrLike | None = None, 142 onmouseout: StrLike | None = None, 143 onmouseover: StrLike | None = None, 144 onmouseup: StrLike | None = None, 145 onpaste: StrLike | None = None, 146 onpause: StrLike | None = None, 147 onplay: StrLike | None = None, 148 onplaying: StrLike | None = None, 149 onprogress: StrLike | None = None, 150 onratechange: StrLike | None = None, 151 onreset: StrLike | None = None, 152 onresize: StrLike | None = None, 153 onscroll: StrLike | None = None, 154 onscrollend: StrLike | None = None, 155 onsecuritypolicyviolation: StrLike | None = None, 156 onseeked: StrLike | None = None, 157 onseeking: StrLike | None = None, 158 onselect: StrLike | None = None, 159 onslotchange: StrLike | None = None, 160 onstalled: StrLike | None = None, 161 onsubmit: StrLike | None = None, 162 onsuspend: StrLike | None = None, 163 ontimeupdate: StrLike | None = None, 164 ontoggle: StrLike | None = None, 165 onvolumechange: StrLike | None = None, 166 onwaiting: StrLike | None = None, 167 onwheel: StrLike | None = None, 168 popover: Literal["auto", "manual"] | StrLike | None = None, 169 slot: StrLike | None = None, 170 spellcheck: Literal["true", "false", ""] | StrLike | None = None, 171 style: Resolvable | Mapping[StrLike, StrLike] | None = None, 172 tabindex: int | StrLike | None = None, 173 title: StrLike | None = None, 174 translate: Literal["yes", "no"] | StrLike | None = None, 175 writingsuggestions: Literal["true", "false", ""] 176 | StrLike 177 | None = None, 178 children: list | None = None, 179 ) -> None: 180 """ 181 Initialize 'output' (Calculated output value) element. 182 Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output 183 184 Args: 185 attrs: 186 A list or dictionary of attributes for the element 187 188 id: 189 The element's ID 190 191 class_: 192 Classes to which the element belongs 193 194 for_: 195 Specifies controls from which the output was calculated 196 197 form: 198 Associates the element with a form element. 199 Value hint: ID* 200 201 name: 202 Name of the element to use for form submission and in the form.elements API 203 204 accesskey: 205 Keyboard shortcut to activate or focus element 206 207 autocapitalize: 208 Recommended autocapitalization behavior (for supported input methods) 209 210 autocorrect: 211 Recommended autocorrection behavior (for supported input methods) 212 213 autofocus: 214 Automatically focus the element when the page is loaded 215 216 contenteditable: 217 Whether the element is editable 218 219 dir: 220 The text directionality of the element 221 222 draggable: 223 Whether the element is draggable 224 225 enterkeyhint: 226 Hint for selecting an enter key action 227 228 hidden: 229 Whether the element is relevant 230 231 inert: 232 Whether the element is inert. 233 234 inputmode: 235 Hint for selecting an input modality 236 237 is_: 238 Creates a customized built-in element. 239 Value hint: Valid custom element name of a defined customized built-in element 240 241 itemid: 242 Global identifier for a microdata item. 243 Value hint: Valid URL potentially surrounded by spaces 244 245 itemprop: 246 Property names of a microdata item 247 248 itemref: 249 Referenced elements 250 251 itemscope: 252 Introduces a microdata item 253 254 itemtype: 255 Item types of a microdata item 256 257 lang: 258 Language of the element. 259 Value hint: Valid BCP 47 language tag or the empty string 260 261 nonce: 262 Cryptographic nonce used in Content Security Policy checks [CSP] 263 264 onauxclick: 265 auxclick event handler. 266 Value hint: Event handler content attribute 267 268 onbeforeinput: 269 beforeinput event handler. 270 Value hint: Event handler content attribute 271 272 onbeforematch: 273 beforematch event handler. 274 Value hint: Event handler content attribute 275 276 onbeforetoggle: 277 beforetoggle event handler. 278 Value hint: Event handler content attribute 279 280 onblur: 281 blur event handler. 282 Value hint: Event handler content attribute 283 284 oncancel: 285 cancel event handler. 286 Value hint: Event handler content attribute 287 288 oncanplay: 289 canplay event handler. 290 Value hint: Event handler content attribute 291 292 oncanplaythrough: 293 canplaythrough event handler. 294 Value hint: Event handler content attribute 295 296 onchange: 297 change event handler. 298 Value hint: Event handler content attribute 299 300 onclick: 301 click event handler. 302 Value hint: Event handler content attribute 303 304 onclose: 305 close event handler. 306 Value hint: Event handler content attribute 307 308 oncontextlost: 309 contextlost event handler. 310 Value hint: Event handler content attribute 311 312 oncontextmenu: 313 contextmenu event handler. 314 Value hint: Event handler content attribute 315 316 oncontextrestored: 317 contextrestored event handler. 318 Value hint: Event handler content attribute 319 320 oncopy: 321 copy event handler. 322 Value hint: Event handler content attribute 323 324 oncuechange: 325 cuechange event handler. 326 Value hint: Event handler content attribute 327 328 oncut: 329 cut event handler. 330 Value hint: Event handler content attribute 331 332 ondblclick: 333 dblclick event handler. 334 Value hint: Event handler content attribute 335 336 ondrag: 337 drag event handler. 338 Value hint: Event handler content attribute 339 340 ondragend: 341 dragend event handler. 342 Value hint: Event handler content attribute 343 344 ondragenter: 345 dragenter event handler. 346 Value hint: Event handler content attribute 347 348 ondragleave: 349 dragleave event handler. 350 Value hint: Event handler content attribute 351 352 ondragover: 353 dragover event handler. 354 Value hint: Event handler content attribute 355 356 ondragstart: 357 dragstart event handler. 358 Value hint: Event handler content attribute 359 360 ondrop: 361 drop event handler. 362 Value hint: Event handler content attribute 363 364 ondurationchange: 365 durationchange event handler. 366 Value hint: Event handler content attribute 367 368 onemptied: 369 emptied event handler. 370 Value hint: Event handler content attribute 371 372 onended: 373 ended event handler. 374 Value hint: Event handler content attribute 375 376 onerror: 377 error event handler. 378 Value hint: Event handler content attribute 379 380 onfocus: 381 focus event handler. 382 Value hint: Event handler content attribute 383 384 onformdata: 385 formdata event handler. 386 Value hint: Event handler content attribute 387 388 oninput: 389 input event handler. 390 Value hint: Event handler content attribute 391 392 oninvalid: 393 invalid event handler. 394 Value hint: Event handler content attribute 395 396 onkeydown: 397 keydown event handler. 398 Value hint: Event handler content attribute 399 400 onkeypress: 401 keypress event handler. 402 Value hint: Event handler content attribute 403 404 onkeyup: 405 keyup event handler. 406 Value hint: Event handler content attribute 407 408 onload: 409 load event handler. 410 Value hint: Event handler content attribute 411 412 onloadeddata: 413 loadeddata event handler. 414 Value hint: Event handler content attribute 415 416 onloadedmetadata: 417 loadedmetadata event handler. 418 Value hint: Event handler content attribute 419 420 onloadstart: 421 loadstart event handler. 422 Value hint: Event handler content attribute 423 424 onmousedown: 425 mousedown event handler. 426 Value hint: Event handler content attribute 427 428 onmouseenter: 429 mouseenter event handler. 430 Value hint: Event handler content attribute 431 432 onmouseleave: 433 mouseleave event handler. 434 Value hint: Event handler content attribute 435 436 onmousemove: 437 mousemove event handler. 438 Value hint: Event handler content attribute 439 440 onmouseout: 441 mouseout event handler. 442 Value hint: Event handler content attribute 443 444 onmouseover: 445 mouseover event handler. 446 Value hint: Event handler content attribute 447 448 onmouseup: 449 mouseup event handler. 450 Value hint: Event handler content attribute 451 452 onpaste: 453 paste event handler. 454 Value hint: Event handler content attribute 455 456 onpause: 457 pause event handler. 458 Value hint: Event handler content attribute 459 460 onplay: 461 play event handler. 462 Value hint: Event handler content attribute 463 464 onplaying: 465 playing event handler. 466 Value hint: Event handler content attribute 467 468 onprogress: 469 progress event handler. 470 Value hint: Event handler content attribute 471 472 onratechange: 473 ratechange event handler. 474 Value hint: Event handler content attribute 475 476 onreset: 477 reset event handler. 478 Value hint: Event handler content attribute 479 480 onresize: 481 resize event handler. 482 Value hint: Event handler content attribute 483 484 onscroll: 485 scroll event handler. 486 Value hint: Event handler content attribute 487 488 onscrollend: 489 scrollend event handler. 490 Value hint: Event handler content attribute 491 492 onsecuritypolicyviolation: 493 securitypolicyviolation event handler. 494 Value hint: Event handler content attribute 495 496 onseeked: 497 seeked event handler. 498 Value hint: Event handler content attribute 499 500 onseeking: 501 seeking event handler. 502 Value hint: Event handler content attribute 503 504 onselect: 505 select event handler. 506 Value hint: Event handler content attribute 507 508 onslotchange: 509 slotchange event handler. 510 Value hint: Event handler content attribute 511 512 onstalled: 513 stalled event handler. 514 Value hint: Event handler content attribute 515 516 onsubmit: 517 submit event handler. 518 Value hint: Event handler content attribute 519 520 onsuspend: 521 suspend event handler. 522 Value hint: Event handler content attribute 523 524 ontimeupdate: 525 timeupdate event handler. 526 Value hint: Event handler content attribute 527 528 ontoggle: 529 toggle event handler. 530 Value hint: Event handler content attribute 531 532 onvolumechange: 533 volumechange event handler. 534 Value hint: Event handler content attribute 535 536 onwaiting: 537 waiting event handler. 538 Value hint: Event handler content attribute 539 540 onwheel: 541 wheel event handler. 542 Value hint: Event handler content attribute 543 544 popover: 545 Makes the element a popover element 546 547 slot: 548 The element's desired slot 549 550 spellcheck: 551 Whether the element is to have its spelling and grammar checked 552 553 style: 554 Presentational and formatting instructions. 555 Value hint: CSS declarations* 556 557 tabindex: 558 Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation 559 560 title: 561 Advisory information for the element 562 563 translate: 564 Whether the element is to be translated when the page is localized 565 566 writingsuggestions: 567 Whether the element can offer writing suggestions or not. 568 569 """ # fmt: skip 570 super().__init__( 571 "output", void_element=False, attrs=attrs, children=children 572 ) 573 if not (id is None or id is False): 574 self._process_attr("id", id) 575 if not (class_ is None or class_ is False): 576 self._process_attr("class", class_) 577 if not (for_ is None or for_ is False): 578 self._process_attr("for", for_) 579 if not (form is None or form is False): 580 self._process_attr("form", form) 581 if not (name is None or name is False): 582 self._process_attr("name", name) 583 if not (accesskey is None or accesskey is False): 584 self._process_attr("accesskey", accesskey) 585 if not (autocapitalize is None or autocapitalize is False): 586 self._process_attr("autocapitalize", autocapitalize) 587 if not (autocorrect is None or autocorrect is False): 588 self._process_attr("autocorrect", autocorrect) 589 if not (autofocus is None or autofocus is False): 590 self._process_attr("autofocus", autofocus) 591 if not (contenteditable is None or contenteditable is False): 592 self._process_attr("contenteditable", contenteditable) 593 if not (dir is None or dir is False): 594 self._process_attr("dir", dir) 595 if not (draggable is None or draggable is False): 596 self._process_attr("draggable", draggable) 597 if not (enterkeyhint is None or enterkeyhint is False): 598 self._process_attr("enterkeyhint", enterkeyhint) 599 if not (hidden is None or hidden is False): 600 self._process_attr("hidden", hidden) 601 if not (inert is None or inert is False): 602 self._process_attr("inert", inert) 603 if not (inputmode is None or inputmode is False): 604 self._process_attr("inputmode", inputmode) 605 if not (is_ is None or is_ is False): 606 self._process_attr("is", is_) 607 if not (itemid is None or itemid is False): 608 self._process_attr("itemid", itemid) 609 if not (itemprop is None or itemprop is False): 610 self._process_attr("itemprop", itemprop) 611 if not (itemref is None or itemref is False): 612 self._process_attr("itemref", itemref) 613 if not (itemscope is None or itemscope is False): 614 self._process_attr("itemscope", itemscope) 615 if not (itemtype is None or itemtype is False): 616 self._process_attr("itemtype", itemtype) 617 if not (lang is None or lang is False): 618 self._process_attr("lang", lang) 619 if not (nonce is None or nonce is False): 620 self._process_attr("nonce", nonce) 621 if not (onauxclick is None or onauxclick is False): 622 self._process_attr("onauxclick", onauxclick) 623 if not (onbeforeinput is None or onbeforeinput is False): 624 self._process_attr("onbeforeinput", onbeforeinput) 625 if not (onbeforematch is None or onbeforematch is False): 626 self._process_attr("onbeforematch", onbeforematch) 627 if not (onbeforetoggle is None or onbeforetoggle is False): 628 self._process_attr("onbeforetoggle", onbeforetoggle) 629 if not (onblur is None or onblur is False): 630 self._process_attr("onblur", onblur) 631 if not (oncancel is None or oncancel is False): 632 self._process_attr("oncancel", oncancel) 633 if not (oncanplay is None or oncanplay is False): 634 self._process_attr("oncanplay", oncanplay) 635 if not (oncanplaythrough is None or oncanplaythrough is False): 636 self._process_attr("oncanplaythrough", oncanplaythrough) 637 if not (onchange is None or onchange is False): 638 self._process_attr("onchange", onchange) 639 if not (onclick is None or onclick is False): 640 self._process_attr("onclick", onclick) 641 if not (onclose is None or onclose is False): 642 self._process_attr("onclose", onclose) 643 if not (oncontextlost is None or oncontextlost is False): 644 self._process_attr("oncontextlost", oncontextlost) 645 if not (oncontextmenu is None or oncontextmenu is False): 646 self._process_attr("oncontextmenu", oncontextmenu) 647 if not (oncontextrestored is None or oncontextrestored is False): 648 self._process_attr("oncontextrestored", oncontextrestored) 649 if not (oncopy is None or oncopy is False): 650 self._process_attr("oncopy", oncopy) 651 if not (oncuechange is None or oncuechange is False): 652 self._process_attr("oncuechange", oncuechange) 653 if not (oncut is None or oncut is False): 654 self._process_attr("oncut", oncut) 655 if not (ondblclick is None or ondblclick is False): 656 self._process_attr("ondblclick", ondblclick) 657 if not (ondrag is None or ondrag is False): 658 self._process_attr("ondrag", ondrag) 659 if not (ondragend is None or ondragend is False): 660 self._process_attr("ondragend", ondragend) 661 if not (ondragenter is None or ondragenter is False): 662 self._process_attr("ondragenter", ondragenter) 663 if not (ondragleave is None or ondragleave is False): 664 self._process_attr("ondragleave", ondragleave) 665 if not (ondragover is None or ondragover is False): 666 self._process_attr("ondragover", ondragover) 667 if not (ondragstart is None or ondragstart is False): 668 self._process_attr("ondragstart", ondragstart) 669 if not (ondrop is None or ondrop is False): 670 self._process_attr("ondrop", ondrop) 671 if not (ondurationchange is None or ondurationchange is False): 672 self._process_attr("ondurationchange", ondurationchange) 673 if not (onemptied is None or onemptied is False): 674 self._process_attr("onemptied", onemptied) 675 if not (onended is None or onended is False): 676 self._process_attr("onended", onended) 677 if not (onerror is None or onerror is False): 678 self._process_attr("onerror", onerror) 679 if not (onfocus is None or onfocus is False): 680 self._process_attr("onfocus", onfocus) 681 if not (onformdata is None or onformdata is False): 682 self._process_attr("onformdata", onformdata) 683 if not (oninput is None or oninput is False): 684 self._process_attr("oninput", oninput) 685 if not (oninvalid is None or oninvalid is False): 686 self._process_attr("oninvalid", oninvalid) 687 if not (onkeydown is None or onkeydown is False): 688 self._process_attr("onkeydown", onkeydown) 689 if not (onkeypress is None or onkeypress is False): 690 self._process_attr("onkeypress", onkeypress) 691 if not (onkeyup is None or onkeyup is False): 692 self._process_attr("onkeyup", onkeyup) 693 if not (onload is None or onload is False): 694 self._process_attr("onload", onload) 695 if not (onloadeddata is None or onloadeddata is False): 696 self._process_attr("onloadeddata", onloadeddata) 697 if not (onloadedmetadata is None or onloadedmetadata is False): 698 self._process_attr("onloadedmetadata", onloadedmetadata) 699 if not (onloadstart is None or onloadstart is False): 700 self._process_attr("onloadstart", onloadstart) 701 if not (onmousedown is None or onmousedown is False): 702 self._process_attr("onmousedown", onmousedown) 703 if not (onmouseenter is None or onmouseenter is False): 704 self._process_attr("onmouseenter", onmouseenter) 705 if not (onmouseleave is None or onmouseleave is False): 706 self._process_attr("onmouseleave", onmouseleave) 707 if not (onmousemove is None or onmousemove is False): 708 self._process_attr("onmousemove", onmousemove) 709 if not (onmouseout is None or onmouseout is False): 710 self._process_attr("onmouseout", onmouseout) 711 if not (onmouseover is None or onmouseover is False): 712 self._process_attr("onmouseover", onmouseover) 713 if not (onmouseup is None or onmouseup is False): 714 self._process_attr("onmouseup", onmouseup) 715 if not (onpaste is None or onpaste is False): 716 self._process_attr("onpaste", onpaste) 717 if not (onpause is None or onpause is False): 718 self._process_attr("onpause", onpause) 719 if not (onplay is None or onplay is False): 720 self._process_attr("onplay", onplay) 721 if not (onplaying is None or onplaying is False): 722 self._process_attr("onplaying", onplaying) 723 if not (onprogress is None or onprogress is False): 724 self._process_attr("onprogress", onprogress) 725 if not (onratechange is None or onratechange is False): 726 self._process_attr("onratechange", onratechange) 727 if not (onreset is None or onreset is False): 728 self._process_attr("onreset", onreset) 729 if not (onresize is None or onresize is False): 730 self._process_attr("onresize", onresize) 731 if not (onscroll is None or onscroll is False): 732 self._process_attr("onscroll", onscroll) 733 if not (onscrollend is None or onscrollend is False): 734 self._process_attr("onscrollend", onscrollend) 735 if not ( 736 onsecuritypolicyviolation is None 737 or onsecuritypolicyviolation is False 738 ): 739 self._process_attr( 740 "onsecuritypolicyviolation", onsecuritypolicyviolation 741 ) 742 if not (onseeked is None or onseeked is False): 743 self._process_attr("onseeked", onseeked) 744 if not (onseeking is None or onseeking is False): 745 self._process_attr("onseeking", onseeking) 746 if not (onselect is None or onselect is False): 747 self._process_attr("onselect", onselect) 748 if not (onslotchange is None or onslotchange is False): 749 self._process_attr("onslotchange", onslotchange) 750 if not (onstalled is None or onstalled is False): 751 self._process_attr("onstalled", onstalled) 752 if not (onsubmit is None or onsubmit is False): 753 self._process_attr("onsubmit", onsubmit) 754 if not (onsuspend is None or onsuspend is False): 755 self._process_attr("onsuspend", onsuspend) 756 if not (ontimeupdate is None or ontimeupdate is False): 757 self._process_attr("ontimeupdate", ontimeupdate) 758 if not (ontoggle is None or ontoggle is False): 759 self._process_attr("ontoggle", ontoggle) 760 if not (onvolumechange is None or onvolumechange is False): 761 self._process_attr("onvolumechange", onvolumechange) 762 if not (onwaiting is None or onwaiting is False): 763 self._process_attr("onwaiting", onwaiting) 764 if not (onwheel is None or onwheel is False): 765 self._process_attr("onwheel", onwheel) 766 if not (popover is None or popover is False): 767 self._process_attr("popover", popover) 768 if not (slot is None or slot is False): 769 self._process_attr("slot", slot) 770 if not (spellcheck is None or spellcheck is False): 771 self._process_attr("spellcheck", spellcheck) 772 if not (style is None or style is False): 773 self._process_attr("style", style) 774 if not (tabindex is None or tabindex is False): 775 self._process_attr("tabindex", tabindex) 776 if not (title is None or title is False): 777 self._process_attr("title", title) 778 if not (translate is None or translate is False): 779 self._process_attr("translate", translate) 780 if not (writingsuggestions is None or writingsuggestions is False): 781 self._process_attr("writingsuggestions", writingsuggestions)
Initialize 'output' (Calculated output value) element.
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output
Args: attrs: A list or dictionary of attributes for the element
id:
The element's ID
class_:
Classes to which the element belongs
for_:
Specifies controls from which the output was calculated
form:
Associates the element with a form element.
Value hint: ID*
name:
Name of the element to use for form submission and in the form.elements API
accesskey:
Keyboard shortcut to activate or focus element
autocapitalize:
Recommended autocapitalization behavior (for supported input methods)
autocorrect:
Recommended autocorrection behavior (for supported input methods)
autofocus:
Automatically focus the element when the page is loaded
contenteditable:
Whether the element is editable
dir:
The text directionality of the element
draggable:
Whether the element is draggable
enterkeyhint:
Hint for selecting an enter key action
hidden:
Whether the element is relevant
inert:
Whether the element is inert.
inputmode:
Hint for selecting an input modality
is_:
Creates a customized built-in element.
Value hint: Valid custom element name of a defined customized built-in element
itemid:
Global identifier for a microdata item.
Value hint: Valid URL potentially surrounded by spaces
itemprop:
Property names of a microdata item
itemref:
Referenced elements
itemscope:
Introduces a microdata item
itemtype:
Item types of a microdata item
lang:
Language of the element.
Value hint: Valid BCP 47 language tag or the empty string
nonce:
Cryptographic nonce used in Content Security Policy checks [CSP]
onauxclick:
auxclick event handler.
Value hint: Event handler content attribute
onbeforeinput:
beforeinput event handler.
Value hint: Event handler content attribute
onbeforematch:
beforematch event handler.
Value hint: Event handler content attribute
onbeforetoggle:
beforetoggle event handler.
Value hint: Event handler content attribute
onblur:
blur event handler.
Value hint: Event handler content attribute
oncancel:
cancel event handler.
Value hint: Event handler content attribute
oncanplay:
canplay event handler.
Value hint: Event handler content attribute
oncanplaythrough:
canplaythrough event handler.
Value hint: Event handler content attribute
onchange:
change event handler.
Value hint: Event handler content attribute
onclick:
click event handler.
Value hint: Event handler content attribute
onclose:
close event handler.
Value hint: Event handler content attribute
oncontextlost:
contextlost event handler.
Value hint: Event handler content attribute
oncontextmenu:
contextmenu event handler.
Value hint: Event handler content attribute
oncontextrestored:
contextrestored event handler.
Value hint: Event handler content attribute
oncopy:
copy event handler.
Value hint: Event handler content attribute
oncuechange:
cuechange event handler.
Value hint: Event handler content attribute
oncut:
cut event handler.
Value hint: Event handler content attribute
ondblclick:
dblclick event handler.
Value hint: Event handler content attribute
ondrag:
drag event handler.
Value hint: Event handler content attribute
ondragend:
dragend event handler.
Value hint: Event handler content attribute
ondragenter:
dragenter event handler.
Value hint: Event handler content attribute
ondragleave:
dragleave event handler.
Value hint: Event handler content attribute
ondragover:
dragover event handler.
Value hint: Event handler content attribute
ondragstart:
dragstart event handler.
Value hint: Event handler content attribute
ondrop:
drop event handler.
Value hint: Event handler content attribute
ondurationchange:
durationchange event handler.
Value hint: Event handler content attribute
onemptied:
emptied event handler.
Value hint: Event handler content attribute
onended:
ended event handler.
Value hint: Event handler content attribute
onerror:
error event handler.
Value hint: Event handler content attribute
onfocus:
focus event handler.
Value hint: Event handler content attribute
onformdata:
formdata event handler.
Value hint: Event handler content attribute
oninput:
input event handler.
Value hint: Event handler content attribute
oninvalid:
invalid event handler.
Value hint: Event handler content attribute
onkeydown:
keydown event handler.
Value hint: Event handler content attribute
onkeypress:
keypress event handler.
Value hint: Event handler content attribute
onkeyup:
keyup event handler.
Value hint: Event handler content attribute
onload:
load event handler.
Value hint: Event handler content attribute
onloadeddata:
loadeddata event handler.
Value hint: Event handler content attribute
onloadedmetadata:
loadedmetadata event handler.
Value hint: Event handler content attribute
onloadstart:
loadstart event handler.
Value hint: Event handler content attribute
onmousedown:
mousedown event handler.
Value hint: Event handler content attribute
onmouseenter:
mouseenter event handler.
Value hint: Event handler content attribute
onmouseleave:
mouseleave event handler.
Value hint: Event handler content attribute
onmousemove:
mousemove event handler.
Value hint: Event handler content attribute
onmouseout:
mouseout event handler.
Value hint: Event handler content attribute
onmouseover:
mouseover event handler.
Value hint: Event handler content attribute
onmouseup:
mouseup event handler.
Value hint: Event handler content attribute
onpaste:
paste event handler.
Value hint: Event handler content attribute
onpause:
pause event handler.
Value hint: Event handler content attribute
onplay:
play event handler.
Value hint: Event handler content attribute
onplaying:
playing event handler.
Value hint: Event handler content attribute
onprogress:
progress event handler.
Value hint: Event handler content attribute
onratechange:
ratechange event handler.
Value hint: Event handler content attribute
onreset:
reset event handler.
Value hint: Event handler content attribute
onresize:
resize event handler.
Value hint: Event handler content attribute
onscroll:
scroll event handler.
Value hint: Event handler content attribute
onscrollend:
scrollend event handler.
Value hint: Event handler content attribute
onsecuritypolicyviolation:
securitypolicyviolation event handler.
Value hint: Event handler content attribute
onseeked:
seeked event handler.
Value hint: Event handler content attribute
onseeking:
seeking event handler.
Value hint: Event handler content attribute
onselect:
select event handler.
Value hint: Event handler content attribute
onslotchange:
slotchange event handler.
Value hint: Event handler content attribute
onstalled:
stalled event handler.
Value hint: Event handler content attribute
onsubmit:
submit event handler.
Value hint: Event handler content attribute
onsuspend:
suspend event handler.
Value hint: Event handler content attribute
ontimeupdate:
timeupdate event handler.
Value hint: Event handler content attribute
ontoggle:
toggle event handler.
Value hint: Event handler content attribute
onvolumechange:
volumechange event handler.
Value hint: Event handler content attribute
onwaiting:
waiting event handler.
Value hint: Event handler content attribute
onwheel:
wheel event handler.
Value hint: Event handler content attribute
popover:
Makes the element a popover element
slot:
The element's desired slot
spellcheck:
Whether the element is to have its spelling and grammar checked
style:
Presentational and formatting instructions.
Value hint: CSS declarations*
tabindex:
Whether the element is focusable and sequentially focusable, and the relative order of the element for the purposes of sequential focus navigation
title:
Advisory information for the element
translate:
Whether the element is to be translated when the page is localized
writingsuggestions:
Whether the element can offer writing suggestions or not.
class
output.hint(html_compose.attributes.global_attrs.GlobalAttrs, html_compose.attributes.output_attrs.OutputAttrs):
34 class hint(GlobalAttrs, OutputAttrs): 35 """ 36 Type hints for "output" attrs 37 This class holds functions which return BaseAttributes 38 Which you can add to your element attrs 39 """ # fmt: skip 40 41 pass
Type hints for "output" attrs
This class holds functions which return BaseAttributes
Which you can add to your element attrs
Inherited Members
- html_compose.attributes.global_attrs.GlobalAttrs
- accesskey
- autocapitalize
- autocorrect
- autofocus
- class_
- contenteditable
- dir
- draggable
- enterkeyhint
- id
- inert
- inputmode
- is_
- itemid
- itemprop
- itemref
- itemscope
- itemtype
- lang
- nonce
- popover
- slot
- spellcheck
- style
- tabindex
- title
- translate
- writingsuggestions
- onauxclick
- onbeforeinput
- onbeforematch
- onbeforetoggle
- onblur
- oncancel
- oncanplay
- oncanplaythrough
- onchange
- onclick
- onclose
- oncontextlost
- oncontextrestored
- oncopy
- oncuechange
- oncut
- ondblclick
- ondrag
- ondragend
- ondragenter
- ondragleave
- ondragover
- ondragstart
- ondrop
- ondurationchange
- onemptied
- onended
- onerror
- onfocus
- onformdata
- oninput
- oninvalid
- onkeydown
- onkeypress
- onkeyup
- onload
- onloadeddata
- onloadedmetadata
- onloadstart
- onmousedown
- onmouseenter
- onmouseleave
- onmousemove
- onmouseout
- onmouseover
- onmouseup
- onpaste
- onpause
- onplay
- onplaying
- onprogress
- onratechange
- onreset
- onresize
- onscroll
- onscrollend
- onsecuritypolicyviolation
- onseeked
- onseeking
- onselect
- onslotchange
- onstalled
- onsubmit
- onsuspend
- ontimeupdate
- ontoggle
- onvolumechange
- onwaiting
- onwheel