html_compose.attributes.area_attrs

  1from . import BaseAttribute
  2from typing import Literal
  3from ..base_types import Resolvable, StrLike
  4
  5
  6class AreaAttrs:
  7    """
  8    This module contains functions for attributes in the 'area' element.
  9    Which is inherited by a class so we can generate type hints
 10    """
 11
 12    @staticmethod
 13    def alt(value: StrLike) -> BaseAttribute:
 14        """
 15        "area" attribute: alt
 16        Replacement text for use when images are not available
 17
 18        Args:
 19            value:
 20                Text*
 21
 22        Returns:
 23            An alt attribute to be added to your element
 24
 25        """
 26
 27        return BaseAttribute("alt", value)
 28
 29    @staticmethod
 30    def coords(value) -> BaseAttribute:
 31        """
 32        "area" attribute: coords
 33        Coordinates for the shape to be created in an image map
 34
 35        Args:
 36            value:
 37                Valid list of floating-point numbers*
 38
 39        Returns:
 40            An coords attribute to be added to your element
 41
 42        """
 43
 44        return BaseAttribute("coords", value)
 45
 46    @staticmethod
 47    def download(value: StrLike) -> BaseAttribute:
 48        """
 49        "area" attribute: download
 50        Whether to download the resource instead of navigating to it, and its filename if so
 51
 52        Args:
 53            value:
 54                Text
 55
 56        Returns:
 57            An download attribute to be added to your element
 58
 59        """
 60
 61        return BaseAttribute("download", value)
 62
 63    @staticmethod
 64    def href(value) -> BaseAttribute:
 65        """
 66        "area" attribute: href
 67        Address of the hyperlink
 68
 69        Args:
 70            value:
 71                Valid URL potentially surrounded by spaces
 72
 73        Returns:
 74            An href attribute to be added to your element
 75
 76        """
 77
 78        return BaseAttribute("href", value)
 79
 80    @staticmethod
 81    def ping(value: Resolvable) -> BaseAttribute:
 82        """
 83        "area" attribute: ping
 84        URLs to ping
 85
 86        Args:
 87            value:
 88                Set of space-separated tokens consisting of valid non-empty URLs
 89
 90        Returns:
 91            An ping attribute to be added to your element
 92
 93        """
 94
 95        return BaseAttribute("ping", value)
 96
 97    @staticmethod
 98    def referrerpolicy(value) -> BaseAttribute:
 99        """
100        "area" attribute: referrerpolicy
101        Referrer policy for fetches initiated by the element
102
103        Args:
104            value:
105                Referrer policy
106
107        Returns:
108            An referrerpolicy attribute to be added to your element
109
110        """
111
112        return BaseAttribute("referrerpolicy", value)
113
114    @staticmethod
115    def rel(value: Resolvable) -> BaseAttribute:
116        """
117        "area" attribute: rel
118        Relationship between the location in the document containing the hyperlink and the destination resource
119
120        Args:
121            value:
122                Unordered set of unique space-separated tokens*
123
124        Returns:
125            An rel attribute to be added to your element
126
127        """
128
129        return BaseAttribute("rel", value)
130
131    @staticmethod
132    def shape(
133        value: Literal["circle", "default", "poly", "rect"],
134    ) -> BaseAttribute:
135        """
136        "area" attribute: shape
137        The kind of shape to be created in an image map
138
139        Args:
140            value:
141                ['circle', 'default', 'poly', 'rect']
142
143        Returns:
144            An shape attribute to be added to your element
145
146        """
147
148        return BaseAttribute("shape", value)
149
150    @staticmethod
151    def target(value) -> BaseAttribute:
152        """
153        "area" attribute: target
154        Navigable for hyperlink navigation
155
156        Args:
157            value:
158                Valid navigable target name or keyword
159
160        Returns:
161            An target attribute to be added to your element
162
163        """
164
165        return BaseAttribute("target", value)
class AreaAttrs:
  7class AreaAttrs:
  8    """
  9    This module contains functions for attributes in the 'area' element.
 10    Which is inherited by a class so we can generate type hints
 11    """
 12
 13    @staticmethod
 14    def alt(value: StrLike) -> BaseAttribute:
 15        """
 16        "area" attribute: alt
 17        Replacement text for use when images are not available
 18
 19        Args:
 20            value:
 21                Text*
 22
 23        Returns:
 24            An alt attribute to be added to your element
 25
 26        """
 27
 28        return BaseAttribute("alt", value)
 29
 30    @staticmethod
 31    def coords(value) -> BaseAttribute:
 32        """
 33        "area" attribute: coords
 34        Coordinates for the shape to be created in an image map
 35
 36        Args:
 37            value:
 38                Valid list of floating-point numbers*
 39
 40        Returns:
 41            An coords attribute to be added to your element
 42
 43        """
 44
 45        return BaseAttribute("coords", value)
 46
 47    @staticmethod
 48    def download(value: StrLike) -> BaseAttribute:
 49        """
 50        "area" attribute: download
 51        Whether to download the resource instead of navigating to it, and its filename if so
 52
 53        Args:
 54            value:
 55                Text
 56
 57        Returns:
 58            An download attribute to be added to your element
 59
 60        """
 61
 62        return BaseAttribute("download", value)
 63
 64    @staticmethod
 65    def href(value) -> BaseAttribute:
 66        """
 67        "area" attribute: href
 68        Address of the hyperlink
 69
 70        Args:
 71            value:
 72                Valid URL potentially surrounded by spaces
 73
 74        Returns:
 75            An href attribute to be added to your element
 76
 77        """
 78
 79        return BaseAttribute("href", value)
 80
 81    @staticmethod
 82    def ping(value: Resolvable) -> BaseAttribute:
 83        """
 84        "area" attribute: ping
 85        URLs to ping
 86
 87        Args:
 88            value:
 89                Set of space-separated tokens consisting of valid non-empty URLs
 90
 91        Returns:
 92            An ping attribute to be added to your element
 93
 94        """
 95
 96        return BaseAttribute("ping", value)
 97
 98    @staticmethod
 99    def referrerpolicy(value) -> BaseAttribute:
100        """
101        "area" attribute: referrerpolicy
102        Referrer policy for fetches initiated by the element
103
104        Args:
105            value:
106                Referrer policy
107
108        Returns:
109            An referrerpolicy attribute to be added to your element
110
111        """
112
113        return BaseAttribute("referrerpolicy", value)
114
115    @staticmethod
116    def rel(value: Resolvable) -> BaseAttribute:
117        """
118        "area" attribute: rel
119        Relationship between the location in the document containing the hyperlink and the destination resource
120
121        Args:
122            value:
123                Unordered set of unique space-separated tokens*
124
125        Returns:
126            An rel attribute to be added to your element
127
128        """
129
130        return BaseAttribute("rel", value)
131
132    @staticmethod
133    def shape(
134        value: Literal["circle", "default", "poly", "rect"],
135    ) -> BaseAttribute:
136        """
137        "area" attribute: shape
138        The kind of shape to be created in an image map
139
140        Args:
141            value:
142                ['circle', 'default', 'poly', 'rect']
143
144        Returns:
145            An shape attribute to be added to your element
146
147        """
148
149        return BaseAttribute("shape", value)
150
151    @staticmethod
152    def target(value) -> BaseAttribute:
153        """
154        "area" attribute: target
155        Navigable for hyperlink navigation
156
157        Args:
158            value:
159                Valid navigable target name or keyword
160
161        Returns:
162            An target attribute to be added to your element
163
164        """
165
166        return BaseAttribute("target", value)

This module contains functions for attributes in the 'area' element. Which is inherited by a class so we can generate type hints

@staticmethod
def alt( value: str | float | int | bool) -> html_compose.base_attribute.BaseAttribute:
13    @staticmethod
14    def alt(value: StrLike) -> BaseAttribute:
15        """
16        "area" attribute: alt
17        Replacement text for use when images are not available
18
19        Args:
20            value:
21                Text*
22
23        Returns:
24            An alt attribute to be added to your element
25
26        """
27
28        return BaseAttribute("alt", value)

"area" attribute: alt Replacement text for use when images are not available

Args: value: Text*

Returns: An alt attribute to be added to your element

@staticmethod
def coords(value) -> html_compose.base_attribute.BaseAttribute:
30    @staticmethod
31    def coords(value) -> BaseAttribute:
32        """
33        "area" attribute: coords
34        Coordinates for the shape to be created in an image map
35
36        Args:
37            value:
38                Valid list of floating-point numbers*
39
40        Returns:
41            An coords attribute to be added to your element
42
43        """
44
45        return BaseAttribute("coords", value)

"area" attribute: coords Coordinates for the shape to be created in an image map

Args: value: Valid list of floating-point numbers*

Returns: An coords attribute to be added to your element

@staticmethod
def download( value: str | float | int | bool) -> html_compose.base_attribute.BaseAttribute:
47    @staticmethod
48    def download(value: StrLike) -> BaseAttribute:
49        """
50        "area" attribute: download
51        Whether to download the resource instead of navigating to it, and its filename if so
52
53        Args:
54            value:
55                Text
56
57        Returns:
58            An download attribute to be added to your element
59
60        """
61
62        return BaseAttribute("download", value)

"area" attribute: download Whether to download the resource instead of navigating to it, and its filename if so

Args: value: Text

Returns: An download attribute to be added to your element

@staticmethod
def href(value) -> html_compose.base_attribute.BaseAttribute:
64    @staticmethod
65    def href(value) -> BaseAttribute:
66        """
67        "area" attribute: href
68        Address of the hyperlink
69
70        Args:
71            value:
72                Valid URL potentially surrounded by spaces
73
74        Returns:
75            An href attribute to be added to your element
76
77        """
78
79        return BaseAttribute("href", value)

"area" attribute: href Address of the hyperlink

Args: value: Valid URL potentially surrounded by spaces

Returns: An href attribute to be added to your element

@staticmethod
def ping( value: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]]) -> html_compose.base_attribute.BaseAttribute:
81    @staticmethod
82    def ping(value: Resolvable) -> BaseAttribute:
83        """
84        "area" attribute: ping
85        URLs to ping
86
87        Args:
88            value:
89                Set of space-separated tokens consisting of valid non-empty URLs
90
91        Returns:
92            An ping attribute to be added to your element
93
94        """
95
96        return BaseAttribute("ping", value)

"area" attribute: ping URLs to ping

Args: value: Set of space-separated tokens consisting of valid non-empty URLs

Returns: An ping attribute to be added to your element

@staticmethod
def referrerpolicy(value) -> html_compose.base_attribute.BaseAttribute:
 98    @staticmethod
 99    def referrerpolicy(value) -> BaseAttribute:
100        """
101        "area" attribute: referrerpolicy
102        Referrer policy for fetches initiated by the element
103
104        Args:
105            value:
106                Referrer policy
107
108        Returns:
109            An referrerpolicy attribute to be added to your element
110
111        """
112
113        return BaseAttribute("referrerpolicy", value)

"area" attribute: referrerpolicy Referrer policy for fetches initiated by the element

Args: value: Referrer policy

Returns: An referrerpolicy attribute to be added to your element

@staticmethod
def rel( value: Union[NoneType, str, float, int, bool, Iterable[str | float | int | bool], Mapping[str | float | int | bool, bool]]) -> html_compose.base_attribute.BaseAttribute:
115    @staticmethod
116    def rel(value: Resolvable) -> BaseAttribute:
117        """
118        "area" attribute: rel
119        Relationship between the location in the document containing the hyperlink and the destination resource
120
121        Args:
122            value:
123                Unordered set of unique space-separated tokens*
124
125        Returns:
126            An rel attribute to be added to your element
127
128        """
129
130        return BaseAttribute("rel", value)

"area" attribute: rel Relationship between the location in the document containing the hyperlink and the destination resource

Args: value: Unordered set of unique space-separated tokens*

Returns: An rel attribute to be added to your element

@staticmethod
def shape( value: Literal['circle', 'default', 'poly', 'rect']) -> html_compose.base_attribute.BaseAttribute:
132    @staticmethod
133    def shape(
134        value: Literal["circle", "default", "poly", "rect"],
135    ) -> BaseAttribute:
136        """
137        "area" attribute: shape
138        The kind of shape to be created in an image map
139
140        Args:
141            value:
142                ['circle', 'default', 'poly', 'rect']
143
144        Returns:
145            An shape attribute to be added to your element
146
147        """
148
149        return BaseAttribute("shape", value)

"area" attribute: shape The kind of shape to be created in an image map

Args: value: ['circle', 'default', 'poly', 'rect']

Returns: An shape attribute to be added to your element

@staticmethod
def target(value) -> html_compose.base_attribute.BaseAttribute:
151    @staticmethod
152    def target(value) -> BaseAttribute:
153        """
154        "area" attribute: target
155        Navigable for hyperlink navigation
156
157        Args:
158            value:
159                Valid navigable target name or keyword
160
161        Returns:
162            An target attribute to be added to your element
163
164        """
165
166        return BaseAttribute("target", value)

"area" attribute: target Navigable for hyperlink navigation

Args: value: Valid navigable target name or keyword

Returns: An target attribute to be added to your element