html_compose.attributes.iframe_attrs

  1from . import BaseAttribute
  2from typing import Literal
  3from ..base_types import Resolvable
  4
  5
  6class IframeAttrs:
  7    """
  8    This module contains functions for attributes in the 'iframe' element.
  9    Which is inherited by a class so we can generate type hints
 10    """
 11
 12    @staticmethod
 13    def allow(value) -> BaseAttribute:
 14        """
 15        "iframe" attribute: allow
 16        Permissions policy to be applied to the iframe's contents
 17
 18        Args:
 19            value:
 20                Serialized permissions policy
 21
 22        Returns:
 23            An allow attribute to be added to your element
 24
 25        """
 26
 27        return BaseAttribute("allow", value)
 28
 29    @staticmethod
 30    def allowfullscreen(value: bool) -> BaseAttribute:
 31        """
 32        "iframe" attribute: allowfullscreen
 33        Whether to allow the iframe's contents to use requestFullscreen()
 34
 35        Args:
 36            value:
 37                Boolean attribute
 38
 39        Returns:
 40            An allowfullscreen attribute to be added to your element
 41
 42        """
 43
 44        return BaseAttribute("allowfullscreen", value)
 45
 46    @staticmethod
 47    def height(value: int) -> BaseAttribute:
 48        """
 49        "iframe" attribute: height
 50        Vertical dimension
 51
 52        Args:
 53            value:
 54                Valid non-negative integer
 55
 56        Returns:
 57            An height attribute to be added to your element
 58
 59        """
 60
 61        return BaseAttribute("height", value)
 62
 63    @staticmethod
 64    def loading(value: Literal["lazy", "eager"]) -> BaseAttribute:
 65        """
 66        "iframe" attribute: loading
 67        Used when determining loading deferral
 68
 69        Args:
 70            value:
 71                ['lazy', 'eager']
 72
 73        Returns:
 74            An loading attribute to be added to your element
 75
 76        """
 77
 78        return BaseAttribute("loading", value)
 79
 80    @staticmethod
 81    def name(value) -> BaseAttribute:
 82        """
 83        "iframe" attribute: name
 84        Name of content navigable
 85
 86        Args:
 87            value:
 88                Valid navigable target name or keyword
 89
 90        Returns:
 91            An name attribute to be added to your element
 92
 93        """
 94
 95        return BaseAttribute("name", value)
 96
 97    @staticmethod
 98    def referrerpolicy(value) -> BaseAttribute:
 99        """
100        "iframe" 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 sandbox(value: Resolvable) -> BaseAttribute:
116        """
117        "iframe" attribute: sandbox
118        Security rules for nested content
119
120        Args:
121            value:
122                Unordered set of unique space-separated tokens, ASCII case-insensitive, consisting of "allow-downloads" "allow-forms" "allow-modals" "allow-orientation-lock" "allow-pointer-lock" "allow-popups" "allow-popups-to-escape-sandbox" "allow-presentation" "allow-same-origin" "allow-scripts" "allow-top-navigation" "allow-top-navigation-by-user-activation" "allow-top-navigation-to-custom-protocols"
123
124        Returns:
125            An sandbox attribute to be added to your element
126
127        """
128
129        return BaseAttribute("sandbox", value)
130
131    @staticmethod
132    def src(value) -> BaseAttribute:
133        """
134        "iframe" attribute: src
135        Address of the resource
136
137        Args:
138            value:
139                Valid non-empty URL potentially surrounded by spaces
140
141        Returns:
142            An src attribute to be added to your element
143
144        """
145
146        return BaseAttribute("src", value)
147
148    @staticmethod
149    def srcdoc(value) -> BaseAttribute:
150        """
151        "iframe" attribute: srcdoc
152        A document to render in the iframe
153
154        Args:
155            value:
156                The source of an iframe srcdoc document*
157
158        Returns:
159            An srcdoc attribute to be added to your element
160
161        """
162
163        return BaseAttribute("srcdoc", value)
164
165    @staticmethod
166    def width(value: int) -> BaseAttribute:
167        """
168        "iframe" attribute: width
169        Horizontal dimension
170
171        Args:
172            value:
173                Valid non-negative integer
174
175        Returns:
176            An width attribute to be added to your element
177
178        """
179
180        return BaseAttribute("width", value)
class IframeAttrs:
  7class IframeAttrs:
  8    """
  9    This module contains functions for attributes in the 'iframe' element.
 10    Which is inherited by a class so we can generate type hints
 11    """
 12
 13    @staticmethod
 14    def allow(value) -> BaseAttribute:
 15        """
 16        "iframe" attribute: allow
 17        Permissions policy to be applied to the iframe's contents
 18
 19        Args:
 20            value:
 21                Serialized permissions policy
 22
 23        Returns:
 24            An allow attribute to be added to your element
 25
 26        """
 27
 28        return BaseAttribute("allow", value)
 29
 30    @staticmethod
 31    def allowfullscreen(value: bool) -> BaseAttribute:
 32        """
 33        "iframe" attribute: allowfullscreen
 34        Whether to allow the iframe's contents to use requestFullscreen()
 35
 36        Args:
 37            value:
 38                Boolean attribute
 39
 40        Returns:
 41            An allowfullscreen attribute to be added to your element
 42
 43        """
 44
 45        return BaseAttribute("allowfullscreen", value)
 46
 47    @staticmethod
 48    def height(value: int) -> BaseAttribute:
 49        """
 50        "iframe" attribute: height
 51        Vertical dimension
 52
 53        Args:
 54            value:
 55                Valid non-negative integer
 56
 57        Returns:
 58            An height attribute to be added to your element
 59
 60        """
 61
 62        return BaseAttribute("height", value)
 63
 64    @staticmethod
 65    def loading(value: Literal["lazy", "eager"]) -> BaseAttribute:
 66        """
 67        "iframe" attribute: loading
 68        Used when determining loading deferral
 69
 70        Args:
 71            value:
 72                ['lazy', 'eager']
 73
 74        Returns:
 75            An loading attribute to be added to your element
 76
 77        """
 78
 79        return BaseAttribute("loading", value)
 80
 81    @staticmethod
 82    def name(value) -> BaseAttribute:
 83        """
 84        "iframe" attribute: name
 85        Name of content navigable
 86
 87        Args:
 88            value:
 89                Valid navigable target name or keyword
 90
 91        Returns:
 92            An name attribute to be added to your element
 93
 94        """
 95
 96        return BaseAttribute("name", value)
 97
 98    @staticmethod
 99    def referrerpolicy(value) -> BaseAttribute:
100        """
101        "iframe" 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 sandbox(value: Resolvable) -> BaseAttribute:
117        """
118        "iframe" attribute: sandbox
119        Security rules for nested content
120
121        Args:
122            value:
123                Unordered set of unique space-separated tokens, ASCII case-insensitive, consisting of "allow-downloads" "allow-forms" "allow-modals" "allow-orientation-lock" "allow-pointer-lock" "allow-popups" "allow-popups-to-escape-sandbox" "allow-presentation" "allow-same-origin" "allow-scripts" "allow-top-navigation" "allow-top-navigation-by-user-activation" "allow-top-navigation-to-custom-protocols"
124
125        Returns:
126            An sandbox attribute to be added to your element
127
128        """
129
130        return BaseAttribute("sandbox", value)
131
132    @staticmethod
133    def src(value) -> BaseAttribute:
134        """
135        "iframe" attribute: src
136        Address of the resource
137
138        Args:
139            value:
140                Valid non-empty URL potentially surrounded by spaces
141
142        Returns:
143            An src attribute to be added to your element
144
145        """
146
147        return BaseAttribute("src", value)
148
149    @staticmethod
150    def srcdoc(value) -> BaseAttribute:
151        """
152        "iframe" attribute: srcdoc
153        A document to render in the iframe
154
155        Args:
156            value:
157                The source of an iframe srcdoc document*
158
159        Returns:
160            An srcdoc attribute to be added to your element
161
162        """
163
164        return BaseAttribute("srcdoc", value)
165
166    @staticmethod
167    def width(value: int) -> BaseAttribute:
168        """
169        "iframe" attribute: width
170        Horizontal dimension
171
172        Args:
173            value:
174                Valid non-negative integer
175
176        Returns:
177            An width attribute to be added to your element
178
179        """
180
181        return BaseAttribute("width", value)

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

@staticmethod
def allow(value) -> html_compose.base_attribute.BaseAttribute:
13    @staticmethod
14    def allow(value) -> BaseAttribute:
15        """
16        "iframe" attribute: allow
17        Permissions policy to be applied to the iframe's contents
18
19        Args:
20            value:
21                Serialized permissions policy
22
23        Returns:
24            An allow attribute to be added to your element
25
26        """
27
28        return BaseAttribute("allow", value)

"iframe" attribute: allow Permissions policy to be applied to the iframe's contents

Args: value: Serialized permissions policy

Returns: An allow attribute to be added to your element

@staticmethod
def allowfullscreen(value: bool) -> html_compose.base_attribute.BaseAttribute:
30    @staticmethod
31    def allowfullscreen(value: bool) -> BaseAttribute:
32        """
33        "iframe" attribute: allowfullscreen
34        Whether to allow the iframe's contents to use requestFullscreen()
35
36        Args:
37            value:
38                Boolean attribute
39
40        Returns:
41            An allowfullscreen attribute to be added to your element
42
43        """
44
45        return BaseAttribute("allowfullscreen", value)

"iframe" attribute: allowfullscreen Whether to allow the iframe's contents to use requestFullscreen()

Args: value: Boolean attribute

Returns: An allowfullscreen attribute to be added to your element

@staticmethod
def height(value: int) -> html_compose.base_attribute.BaseAttribute:
47    @staticmethod
48    def height(value: int) -> BaseAttribute:
49        """
50        "iframe" attribute: height
51        Vertical dimension
52
53        Args:
54            value:
55                Valid non-negative integer
56
57        Returns:
58            An height attribute to be added to your element
59
60        """
61
62        return BaseAttribute("height", value)

"iframe" attribute: height Vertical dimension

Args: value: Valid non-negative integer

Returns: An height attribute to be added to your element

@staticmethod
def loading( value: Literal['lazy', 'eager']) -> html_compose.base_attribute.BaseAttribute:
64    @staticmethod
65    def loading(value: Literal["lazy", "eager"]) -> BaseAttribute:
66        """
67        "iframe" attribute: loading
68        Used when determining loading deferral
69
70        Args:
71            value:
72                ['lazy', 'eager']
73
74        Returns:
75            An loading attribute to be added to your element
76
77        """
78
79        return BaseAttribute("loading", value)

"iframe" attribute: loading Used when determining loading deferral

Args: value: ['lazy', 'eager']

Returns: An loading attribute to be added to your element

@staticmethod
def name(value) -> html_compose.base_attribute.BaseAttribute:
81    @staticmethod
82    def name(value) -> BaseAttribute:
83        """
84        "iframe" attribute: name
85        Name of content navigable
86
87        Args:
88            value:
89                Valid navigable target name or keyword
90
91        Returns:
92            An name attribute to be added to your element
93
94        """
95
96        return BaseAttribute("name", value)

"iframe" attribute: name Name of content navigable

Args: value: Valid navigable target name or keyword

Returns: An name 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        "iframe" 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)

"iframe" 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 sandbox( 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 sandbox(value: Resolvable) -> BaseAttribute:
117        """
118        "iframe" attribute: sandbox
119        Security rules for nested content
120
121        Args:
122            value:
123                Unordered set of unique space-separated tokens, ASCII case-insensitive, consisting of "allow-downloads" "allow-forms" "allow-modals" "allow-orientation-lock" "allow-pointer-lock" "allow-popups" "allow-popups-to-escape-sandbox" "allow-presentation" "allow-same-origin" "allow-scripts" "allow-top-navigation" "allow-top-navigation-by-user-activation" "allow-top-navigation-to-custom-protocols"
124
125        Returns:
126            An sandbox attribute to be added to your element
127
128        """
129
130        return BaseAttribute("sandbox", value)

"iframe" attribute: sandbox Security rules for nested content

Args: value: Unordered set of unique space-separated tokens, ASCII case-insensitive, consisting of "allow-downloads" "allow-forms" "allow-modals" "allow-orientation-lock" "allow-pointer-lock" "allow-popups" "allow-popups-to-escape-sandbox" "allow-presentation" "allow-same-origin" "allow-scripts" "allow-top-navigation" "allow-top-navigation-by-user-activation" "allow-top-navigation-to-custom-protocols"

Returns: An sandbox attribute to be added to your element

@staticmethod
def src(value) -> html_compose.base_attribute.BaseAttribute:
132    @staticmethod
133    def src(value) -> BaseAttribute:
134        """
135        "iframe" attribute: src
136        Address of the resource
137
138        Args:
139            value:
140                Valid non-empty URL potentially surrounded by spaces
141
142        Returns:
143            An src attribute to be added to your element
144
145        """
146
147        return BaseAttribute("src", value)

"iframe" attribute: src Address of the resource

Args: value: Valid non-empty URL potentially surrounded by spaces

Returns: An src attribute to be added to your element

@staticmethod
def srcdoc(value) -> html_compose.base_attribute.BaseAttribute:
149    @staticmethod
150    def srcdoc(value) -> BaseAttribute:
151        """
152        "iframe" attribute: srcdoc
153        A document to render in the iframe
154
155        Args:
156            value:
157                The source of an iframe srcdoc document*
158
159        Returns:
160            An srcdoc attribute to be added to your element
161
162        """
163
164        return BaseAttribute("srcdoc", value)

"iframe" attribute: srcdoc A document to render in the iframe

Args: value: The source of an iframe srcdoc document*

Returns: An srcdoc attribute to be added to your element

@staticmethod
def width(value: int) -> html_compose.base_attribute.BaseAttribute:
166    @staticmethod
167    def width(value: int) -> BaseAttribute:
168        """
169        "iframe" attribute: width
170        Horizontal dimension
171
172        Args:
173            value:
174                Valid non-negative integer
175
176        Returns:
177            An width attribute to be added to your element
178
179        """
180
181        return BaseAttribute("width", value)

"iframe" attribute: width Horizontal dimension

Args: value: Valid non-negative integer

Returns: An width attribute to be added to your element