Skip to content

Commit af58fbf

Browse files
authored
Merge pull request #758 from vanessapigwin/docs-stock-tags-table-to-textarea
docs: add docstrings for base tags Table to Textarea
2 parents ba01913 + bc6cf97 commit af58fbf

File tree

1 file changed

+68
-5
lines changed

1 file changed

+68
-5
lines changed

src/air/tags/models/stock.py

Lines changed: 68 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,7 +2398,15 @@ def __init__(
23982398

23992399

24002400
class Table(BaseTag):
2401-
"""Defines a table"""
2401+
"""Defines a table
2402+
2403+
Args:
2404+
children: Tags, strings, or other rendered content.
2405+
class_: Substituted as the DOM `class` attribute.
2406+
id: DOM ID attribute.
2407+
style: Inline style attribute.
2408+
kwargs: Keyword arguments transformed into tag attributes.
2409+
"""
24022410

24032411
def __init__(
24042412
self,
@@ -2412,7 +2420,15 @@ def __init__(
24122420

24132421

24142422
class Tbody(BaseTag):
2415-
"""Groups the body content in a table"""
2423+
"""Groups the body content in a table
2424+
2425+
Args:
2426+
children: Tags, strings, or other rendered content.
2427+
class_: Substituted as the DOM `class` attribute.
2428+
id: DOM ID attribute.
2429+
style: Inline style attribute.
2430+
kwargs: Keyword arguments transformed into tag attributes.
2431+
"""
24162432

24172433
def __init__(
24182434
self,
@@ -2426,7 +2442,18 @@ def __init__(
24262442

24272443

24282444
class Td(BaseTag):
2429-
"""Defines a cell in a table"""
2445+
"""Defines a cell in a table
2446+
2447+
Args:
2448+
children: Tags, strings, or other rendered content.
2449+
colspan: Defines the number of columns a cell should span.
2450+
rowspan: Defines the number of rows a cell should span.
2451+
headers: list of string ids of the `<th>` elements that apply to the cell
2452+
class_: Substituted as the DOM `class` attribute.
2453+
id: DOM ID attribute.
2454+
style: Inline style attribute.
2455+
kwargs: Keyword arguments transformed into tag attributes.
2456+
"""
24302457

24312458
def __init__(
24322459
self,
@@ -2443,7 +2470,18 @@ def __init__(
24432470

24442471

24452472
class Template(BaseTag):
2446-
"""Defines a container for content that should be hidden when the page loads"""
2473+
"""Defines a container for content that should be hidden when the page loads
2474+
2475+
Args:
2476+
children: Tags, strings, or other rendered content.
2477+
shadowrootmode: Creates a shadow root for the parent element.
2478+
shadowrootdelegatesfocus: Sets whether the shadow root created delegates focus.
2479+
shadowrootclonable: Sets the value of the 'cloneable' property on the shadow root.
2480+
shadowrootserializable: Sets the value of the 'serializable' property on the shadow root.
2481+
class_: Substituted as the DOM `class` attribute.
2482+
id: DOM ID attribute.
2483+
kwargs: Keyword arguments transformed into tag attributes.
2484+
"""
24472485

24482486
def __init__(
24492487
self,
@@ -2460,7 +2498,32 @@ def __init__(
24602498

24612499

24622500
class Textarea(BaseTag):
2463-
"""Defines a multiline input control (text area)"""
2501+
"""Defines a multiline input control (text area)
2502+
2503+
Args:
2504+
children: Tags, strings, or other rendered content.
2505+
autocapitalize: Determines whether inputted text is automatically capitalized.
2506+
autocomplete: Controls whether inputted text can be automatically completed by the browser.
2507+
autocorrect: Controls whether autocorrect is enabled on the input text.
2508+
autofocus: Indicates that the text area should have input focus when the page loads.
2509+
cols: Defines the visible width of the text area in average character widths.
2510+
dirname: Indicates text directionality of the element contents.
2511+
disabled: Determines if the user can interact with the text area.
2512+
form: Associates the text area with a form element.
2513+
maxlength: Defines the maximum number of characters allowed in the text area.
2514+
minlength: Defines the minimum number of characters required in the text area.
2515+
name: The name of the element.
2516+
placeholder: Provides a hint to the user of what can be entered in the text area.
2517+
readonly: Indicates that the user may not edit the value of the text area.
2518+
required: Specifies that the text area must be filled out before submitting the form.
2519+
rows: Defines the visible number of lines for the control.
2520+
spellcheck: Specifies if the element is subject to browser or OS spell-check.
2521+
wrap: Indicates how the text area handles line wrapping.
2522+
class_: Substituted as the DOM `class` attribute.
2523+
id: DOM ID attribute.
2524+
style: Inline style attribute.
2525+
kwargs: Keyword arguments transformed into tag attributes.
2526+
"""
24642527

24652528
def __init__(
24662529
self,

0 commit comments

Comments
 (0)