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