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