html_compose.attributes.body_attrs

  1from . import BaseAttribute
  2
  3
  4class BodyAttrs:
  5    """
  6    This module contains functions for attributes in the 'body' element.
  7    Which is inherited by a class so we can generate type hints
  8    """
  9
 10    @staticmethod
 11    def onafterprint(value) -> BaseAttribute:
 12        """
 13        "body" attribute: onafterprint
 14        afterprint event handler for Window object
 15
 16        Args:
 17            value:
 18                Event handler content attribute
 19
 20        Returns:
 21            An onafterprint attribute to be added to your element
 22
 23        """
 24
 25        return BaseAttribute("onafterprint", value)
 26
 27    @staticmethod
 28    def onbeforeprint(value) -> BaseAttribute:
 29        """
 30        "body" attribute: onbeforeprint
 31        beforeprint event handler for Window object
 32
 33        Args:
 34            value:
 35                Event handler content attribute
 36
 37        Returns:
 38            An onbeforeprint attribute to be added to your element
 39
 40        """
 41
 42        return BaseAttribute("onbeforeprint", value)
 43
 44    @staticmethod
 45    def onbeforeunload(value) -> BaseAttribute:
 46        """
 47        "body" attribute: onbeforeunload
 48        beforeunload event handler for Window object
 49
 50        Args:
 51            value:
 52                Event handler content attribute
 53
 54        Returns:
 55            An onbeforeunload attribute to be added to your element
 56
 57        """
 58
 59        return BaseAttribute("onbeforeunload", value)
 60
 61    @staticmethod
 62    def onhashchange(value) -> BaseAttribute:
 63        """
 64        "body" attribute: onhashchange
 65        hashchange event handler for Window object
 66
 67        Args:
 68            value:
 69                Event handler content attribute
 70
 71        Returns:
 72            An onhashchange attribute to be added to your element
 73
 74        """
 75
 76        return BaseAttribute("onhashchange", value)
 77
 78    @staticmethod
 79    def onlanguagechange(value) -> BaseAttribute:
 80        """
 81        "body" attribute: onlanguagechange
 82        languagechange event handler for Window object
 83
 84        Args:
 85            value:
 86                Event handler content attribute
 87
 88        Returns:
 89            An onlanguagechange attribute to be added to your element
 90
 91        """
 92
 93        return BaseAttribute("onlanguagechange", value)
 94
 95    @staticmethod
 96    def onmessage(value) -> BaseAttribute:
 97        """
 98        "body" attribute: onmessage
 99        message event handler for Window object
100
101        Args:
102            value:
103                Event handler content attribute
104
105        Returns:
106            An onmessage attribute to be added to your element
107
108        """
109
110        return BaseAttribute("onmessage", value)
111
112    @staticmethod
113    def onmessageerror(value) -> BaseAttribute:
114        """
115        "body" attribute: onmessageerror
116        messageerror event handler for Window object
117
118        Args:
119            value:
120                Event handler content attribute
121
122        Returns:
123            An onmessageerror attribute to be added to your element
124
125        """
126
127        return BaseAttribute("onmessageerror", value)
128
129    @staticmethod
130    def onoffline(value) -> BaseAttribute:
131        """
132        "body" attribute: onoffline
133        offline event handler for Window object
134
135        Args:
136            value:
137                Event handler content attribute
138
139        Returns:
140            An onoffline attribute to be added to your element
141
142        """
143
144        return BaseAttribute("onoffline", value)
145
146    @staticmethod
147    def ononline(value) -> BaseAttribute:
148        """
149        "body" attribute: ononline
150        online event handler for Window object
151
152        Args:
153            value:
154                Event handler content attribute
155
156        Returns:
157            An ononline attribute to be added to your element
158
159        """
160
161        return BaseAttribute("ononline", value)
162
163    @staticmethod
164    def onpagehide(value) -> BaseAttribute:
165        """
166        "body" attribute: onpagehide
167        pagehide event handler for Window object
168
169        Args:
170            value:
171                Event handler content attribute
172
173        Returns:
174            An onpagehide attribute to be added to your element
175
176        """
177
178        return BaseAttribute("onpagehide", value)
179
180    @staticmethod
181    def onpagereveal(value) -> BaseAttribute:
182        """
183        "body" attribute: onpagereveal
184        pagereveal event handler for Window object
185
186        Args:
187            value:
188                Event handler content attribute
189
190        Returns:
191            An onpagereveal attribute to be added to your element
192
193        """
194
195        return BaseAttribute("onpagereveal", value)
196
197    @staticmethod
198    def onpageshow(value) -> BaseAttribute:
199        """
200        "body" attribute: onpageshow
201        pageshow event handler for Window object
202
203        Args:
204            value:
205                Event handler content attribute
206
207        Returns:
208            An onpageshow attribute to be added to your element
209
210        """
211
212        return BaseAttribute("onpageshow", value)
213
214    @staticmethod
215    def onpageswap(value) -> BaseAttribute:
216        """
217        "body" attribute: onpageswap
218        pageswap event handler for Window object
219
220        Args:
221            value:
222                Event handler content attribute
223
224        Returns:
225            An onpageswap attribute to be added to your element
226
227        """
228
229        return BaseAttribute("onpageswap", value)
230
231    @staticmethod
232    def onpopstate(value) -> BaseAttribute:
233        """
234        "body" attribute: onpopstate
235        popstate event handler for Window object
236
237        Args:
238            value:
239                Event handler content attribute
240
241        Returns:
242            An onpopstate attribute to be added to your element
243
244        """
245
246        return BaseAttribute("onpopstate", value)
247
248    @staticmethod
249    def onrejectionhandled(value) -> BaseAttribute:
250        """
251        "body" attribute: onrejectionhandled
252        rejectionhandled event handler for Window object
253
254        Args:
255            value:
256                Event handler content attribute
257
258        Returns:
259            An onrejectionhandled attribute to be added to your element
260
261        """
262
263        return BaseAttribute("onrejectionhandled", value)
264
265    @staticmethod
266    def onstorage(value) -> BaseAttribute:
267        """
268        "body" attribute: onstorage
269        storage event handler for Window object
270
271        Args:
272            value:
273                Event handler content attribute
274
275        Returns:
276            An onstorage attribute to be added to your element
277
278        """
279
280        return BaseAttribute("onstorage", value)
281
282    @staticmethod
283    def onunhandledrejection(value) -> BaseAttribute:
284        """
285        "body" attribute: onunhandledrejection
286        unhandledrejection event handler for Window object
287
288        Args:
289            value:
290                Event handler content attribute
291
292        Returns:
293            An onunhandledrejection attribute to be added to your element
294
295        """
296
297        return BaseAttribute("onunhandledrejection", value)
298
299    @staticmethod
300    def onunload(value) -> BaseAttribute:
301        """
302        "body" attribute: onunload
303        unload event handler for Window object
304
305        Args:
306            value:
307                Event handler content attribute
308
309        Returns:
310            An onunload attribute to be added to your element
311
312        """
313
314        return BaseAttribute("onunload", value)
class BodyAttrs:
  5class BodyAttrs:
  6    """
  7    This module contains functions for attributes in the 'body' element.
  8    Which is inherited by a class so we can generate type hints
  9    """
 10
 11    @staticmethod
 12    def onafterprint(value) -> BaseAttribute:
 13        """
 14        "body" attribute: onafterprint
 15        afterprint event handler for Window object
 16
 17        Args:
 18            value:
 19                Event handler content attribute
 20
 21        Returns:
 22            An onafterprint attribute to be added to your element
 23
 24        """
 25
 26        return BaseAttribute("onafterprint", value)
 27
 28    @staticmethod
 29    def onbeforeprint(value) -> BaseAttribute:
 30        """
 31        "body" attribute: onbeforeprint
 32        beforeprint event handler for Window object
 33
 34        Args:
 35            value:
 36                Event handler content attribute
 37
 38        Returns:
 39            An onbeforeprint attribute to be added to your element
 40
 41        """
 42
 43        return BaseAttribute("onbeforeprint", value)
 44
 45    @staticmethod
 46    def onbeforeunload(value) -> BaseAttribute:
 47        """
 48        "body" attribute: onbeforeunload
 49        beforeunload event handler for Window object
 50
 51        Args:
 52            value:
 53                Event handler content attribute
 54
 55        Returns:
 56            An onbeforeunload attribute to be added to your element
 57
 58        """
 59
 60        return BaseAttribute("onbeforeunload", value)
 61
 62    @staticmethod
 63    def onhashchange(value) -> BaseAttribute:
 64        """
 65        "body" attribute: onhashchange
 66        hashchange event handler for Window object
 67
 68        Args:
 69            value:
 70                Event handler content attribute
 71
 72        Returns:
 73            An onhashchange attribute to be added to your element
 74
 75        """
 76
 77        return BaseAttribute("onhashchange", value)
 78
 79    @staticmethod
 80    def onlanguagechange(value) -> BaseAttribute:
 81        """
 82        "body" attribute: onlanguagechange
 83        languagechange event handler for Window object
 84
 85        Args:
 86            value:
 87                Event handler content attribute
 88
 89        Returns:
 90            An onlanguagechange attribute to be added to your element
 91
 92        """
 93
 94        return BaseAttribute("onlanguagechange", value)
 95
 96    @staticmethod
 97    def onmessage(value) -> BaseAttribute:
 98        """
 99        "body" attribute: onmessage
100        message event handler for Window object
101
102        Args:
103            value:
104                Event handler content attribute
105
106        Returns:
107            An onmessage attribute to be added to your element
108
109        """
110
111        return BaseAttribute("onmessage", value)
112
113    @staticmethod
114    def onmessageerror(value) -> BaseAttribute:
115        """
116        "body" attribute: onmessageerror
117        messageerror event handler for Window object
118
119        Args:
120            value:
121                Event handler content attribute
122
123        Returns:
124            An onmessageerror attribute to be added to your element
125
126        """
127
128        return BaseAttribute("onmessageerror", value)
129
130    @staticmethod
131    def onoffline(value) -> BaseAttribute:
132        """
133        "body" attribute: onoffline
134        offline event handler for Window object
135
136        Args:
137            value:
138                Event handler content attribute
139
140        Returns:
141            An onoffline attribute to be added to your element
142
143        """
144
145        return BaseAttribute("onoffline", value)
146
147    @staticmethod
148    def ononline(value) -> BaseAttribute:
149        """
150        "body" attribute: ononline
151        online event handler for Window object
152
153        Args:
154            value:
155                Event handler content attribute
156
157        Returns:
158            An ononline attribute to be added to your element
159
160        """
161
162        return BaseAttribute("ononline", value)
163
164    @staticmethod
165    def onpagehide(value) -> BaseAttribute:
166        """
167        "body" attribute: onpagehide
168        pagehide event handler for Window object
169
170        Args:
171            value:
172                Event handler content attribute
173
174        Returns:
175            An onpagehide attribute to be added to your element
176
177        """
178
179        return BaseAttribute("onpagehide", value)
180
181    @staticmethod
182    def onpagereveal(value) -> BaseAttribute:
183        """
184        "body" attribute: onpagereveal
185        pagereveal event handler for Window object
186
187        Args:
188            value:
189                Event handler content attribute
190
191        Returns:
192            An onpagereveal attribute to be added to your element
193
194        """
195
196        return BaseAttribute("onpagereveal", value)
197
198    @staticmethod
199    def onpageshow(value) -> BaseAttribute:
200        """
201        "body" attribute: onpageshow
202        pageshow event handler for Window object
203
204        Args:
205            value:
206                Event handler content attribute
207
208        Returns:
209            An onpageshow attribute to be added to your element
210
211        """
212
213        return BaseAttribute("onpageshow", value)
214
215    @staticmethod
216    def onpageswap(value) -> BaseAttribute:
217        """
218        "body" attribute: onpageswap
219        pageswap event handler for Window object
220
221        Args:
222            value:
223                Event handler content attribute
224
225        Returns:
226            An onpageswap attribute to be added to your element
227
228        """
229
230        return BaseAttribute("onpageswap", value)
231
232    @staticmethod
233    def onpopstate(value) -> BaseAttribute:
234        """
235        "body" attribute: onpopstate
236        popstate event handler for Window object
237
238        Args:
239            value:
240                Event handler content attribute
241
242        Returns:
243            An onpopstate attribute to be added to your element
244
245        """
246
247        return BaseAttribute("onpopstate", value)
248
249    @staticmethod
250    def onrejectionhandled(value) -> BaseAttribute:
251        """
252        "body" attribute: onrejectionhandled
253        rejectionhandled event handler for Window object
254
255        Args:
256            value:
257                Event handler content attribute
258
259        Returns:
260            An onrejectionhandled attribute to be added to your element
261
262        """
263
264        return BaseAttribute("onrejectionhandled", value)
265
266    @staticmethod
267    def onstorage(value) -> BaseAttribute:
268        """
269        "body" attribute: onstorage
270        storage event handler for Window object
271
272        Args:
273            value:
274                Event handler content attribute
275
276        Returns:
277            An onstorage attribute to be added to your element
278
279        """
280
281        return BaseAttribute("onstorage", value)
282
283    @staticmethod
284    def onunhandledrejection(value) -> BaseAttribute:
285        """
286        "body" attribute: onunhandledrejection
287        unhandledrejection event handler for Window object
288
289        Args:
290            value:
291                Event handler content attribute
292
293        Returns:
294            An onunhandledrejection attribute to be added to your element
295
296        """
297
298        return BaseAttribute("onunhandledrejection", value)
299
300    @staticmethod
301    def onunload(value) -> BaseAttribute:
302        """
303        "body" attribute: onunload
304        unload event handler for Window object
305
306        Args:
307            value:
308                Event handler content attribute
309
310        Returns:
311            An onunload attribute to be added to your element
312
313        """
314
315        return BaseAttribute("onunload", value)

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

@staticmethod
def onafterprint(value) -> html_compose.base_attribute.BaseAttribute:
11    @staticmethod
12    def onafterprint(value) -> BaseAttribute:
13        """
14        "body" attribute: onafterprint
15        afterprint event handler for Window object
16
17        Args:
18            value:
19                Event handler content attribute
20
21        Returns:
22            An onafterprint attribute to be added to your element
23
24        """
25
26        return BaseAttribute("onafterprint", value)

"body" attribute: onafterprint afterprint event handler for Window object

Args: value: Event handler content attribute

Returns: An onafterprint attribute to be added to your element

@staticmethod
def onbeforeprint(value) -> html_compose.base_attribute.BaseAttribute:
28    @staticmethod
29    def onbeforeprint(value) -> BaseAttribute:
30        """
31        "body" attribute: onbeforeprint
32        beforeprint event handler for Window object
33
34        Args:
35            value:
36                Event handler content attribute
37
38        Returns:
39            An onbeforeprint attribute to be added to your element
40
41        """
42
43        return BaseAttribute("onbeforeprint", value)

"body" attribute: onbeforeprint beforeprint event handler for Window object

Args: value: Event handler content attribute

Returns: An onbeforeprint attribute to be added to your element

@staticmethod
def onbeforeunload(value) -> html_compose.base_attribute.BaseAttribute:
45    @staticmethod
46    def onbeforeunload(value) -> BaseAttribute:
47        """
48        "body" attribute: onbeforeunload
49        beforeunload event handler for Window object
50
51        Args:
52            value:
53                Event handler content attribute
54
55        Returns:
56            An onbeforeunload attribute to be added to your element
57
58        """
59
60        return BaseAttribute("onbeforeunload", value)

"body" attribute: onbeforeunload beforeunload event handler for Window object

Args: value: Event handler content attribute

Returns: An onbeforeunload attribute to be added to your element

@staticmethod
def onhashchange(value) -> html_compose.base_attribute.BaseAttribute:
62    @staticmethod
63    def onhashchange(value) -> BaseAttribute:
64        """
65        "body" attribute: onhashchange
66        hashchange event handler for Window object
67
68        Args:
69            value:
70                Event handler content attribute
71
72        Returns:
73            An onhashchange attribute to be added to your element
74
75        """
76
77        return BaseAttribute("onhashchange", value)

"body" attribute: onhashchange hashchange event handler for Window object

Args: value: Event handler content attribute

Returns: An onhashchange attribute to be added to your element

@staticmethod
def onlanguagechange(value) -> html_compose.base_attribute.BaseAttribute:
79    @staticmethod
80    def onlanguagechange(value) -> BaseAttribute:
81        """
82        "body" attribute: onlanguagechange
83        languagechange event handler for Window object
84
85        Args:
86            value:
87                Event handler content attribute
88
89        Returns:
90            An onlanguagechange attribute to be added to your element
91
92        """
93
94        return BaseAttribute("onlanguagechange", value)

"body" attribute: onlanguagechange languagechange event handler for Window object

Args: value: Event handler content attribute

Returns: An onlanguagechange attribute to be added to your element

@staticmethod
def onmessage(value) -> html_compose.base_attribute.BaseAttribute:
 96    @staticmethod
 97    def onmessage(value) -> BaseAttribute:
 98        """
 99        "body" attribute: onmessage
100        message event handler for Window object
101
102        Args:
103            value:
104                Event handler content attribute
105
106        Returns:
107            An onmessage attribute to be added to your element
108
109        """
110
111        return BaseAttribute("onmessage", value)

"body" attribute: onmessage message event handler for Window object

Args: value: Event handler content attribute

Returns: An onmessage attribute to be added to your element

@staticmethod
def onmessageerror(value) -> html_compose.base_attribute.BaseAttribute:
113    @staticmethod
114    def onmessageerror(value) -> BaseAttribute:
115        """
116        "body" attribute: onmessageerror
117        messageerror event handler for Window object
118
119        Args:
120            value:
121                Event handler content attribute
122
123        Returns:
124            An onmessageerror attribute to be added to your element
125
126        """
127
128        return BaseAttribute("onmessageerror", value)

"body" attribute: onmessageerror messageerror event handler for Window object

Args: value: Event handler content attribute

Returns: An onmessageerror attribute to be added to your element

@staticmethod
def onoffline(value) -> html_compose.base_attribute.BaseAttribute:
130    @staticmethod
131    def onoffline(value) -> BaseAttribute:
132        """
133        "body" attribute: onoffline
134        offline event handler for Window object
135
136        Args:
137            value:
138                Event handler content attribute
139
140        Returns:
141            An onoffline attribute to be added to your element
142
143        """
144
145        return BaseAttribute("onoffline", value)

"body" attribute: onoffline offline event handler for Window object

Args: value: Event handler content attribute

Returns: An onoffline attribute to be added to your element

@staticmethod
def ononline(value) -> html_compose.base_attribute.BaseAttribute:
147    @staticmethod
148    def ononline(value) -> BaseAttribute:
149        """
150        "body" attribute: ononline
151        online event handler for Window object
152
153        Args:
154            value:
155                Event handler content attribute
156
157        Returns:
158            An ononline attribute to be added to your element
159
160        """
161
162        return BaseAttribute("ononline", value)

"body" attribute: ononline online event handler for Window object

Args: value: Event handler content attribute

Returns: An ononline attribute to be added to your element

@staticmethod
def onpagehide(value) -> html_compose.base_attribute.BaseAttribute:
164    @staticmethod
165    def onpagehide(value) -> BaseAttribute:
166        """
167        "body" attribute: onpagehide
168        pagehide event handler for Window object
169
170        Args:
171            value:
172                Event handler content attribute
173
174        Returns:
175            An onpagehide attribute to be added to your element
176
177        """
178
179        return BaseAttribute("onpagehide", value)

"body" attribute: onpagehide pagehide event handler for Window object

Args: value: Event handler content attribute

Returns: An onpagehide attribute to be added to your element

@staticmethod
def onpagereveal(value) -> html_compose.base_attribute.BaseAttribute:
181    @staticmethod
182    def onpagereveal(value) -> BaseAttribute:
183        """
184        "body" attribute: onpagereveal
185        pagereveal event handler for Window object
186
187        Args:
188            value:
189                Event handler content attribute
190
191        Returns:
192            An onpagereveal attribute to be added to your element
193
194        """
195
196        return BaseAttribute("onpagereveal", value)

"body" attribute: onpagereveal pagereveal event handler for Window object

Args: value: Event handler content attribute

Returns: An onpagereveal attribute to be added to your element

@staticmethod
def onpageshow(value) -> html_compose.base_attribute.BaseAttribute:
198    @staticmethod
199    def onpageshow(value) -> BaseAttribute:
200        """
201        "body" attribute: onpageshow
202        pageshow event handler for Window object
203
204        Args:
205            value:
206                Event handler content attribute
207
208        Returns:
209            An onpageshow attribute to be added to your element
210
211        """
212
213        return BaseAttribute("onpageshow", value)

"body" attribute: onpageshow pageshow event handler for Window object

Args: value: Event handler content attribute

Returns: An onpageshow attribute to be added to your element

@staticmethod
def onpageswap(value) -> html_compose.base_attribute.BaseAttribute:
215    @staticmethod
216    def onpageswap(value) -> BaseAttribute:
217        """
218        "body" attribute: onpageswap
219        pageswap event handler for Window object
220
221        Args:
222            value:
223                Event handler content attribute
224
225        Returns:
226            An onpageswap attribute to be added to your element
227
228        """
229
230        return BaseAttribute("onpageswap", value)

"body" attribute: onpageswap pageswap event handler for Window object

Args: value: Event handler content attribute

Returns: An onpageswap attribute to be added to your element

@staticmethod
def onpopstate(value) -> html_compose.base_attribute.BaseAttribute:
232    @staticmethod
233    def onpopstate(value) -> BaseAttribute:
234        """
235        "body" attribute: onpopstate
236        popstate event handler for Window object
237
238        Args:
239            value:
240                Event handler content attribute
241
242        Returns:
243            An onpopstate attribute to be added to your element
244
245        """
246
247        return BaseAttribute("onpopstate", value)

"body" attribute: onpopstate popstate event handler for Window object

Args: value: Event handler content attribute

Returns: An onpopstate attribute to be added to your element

@staticmethod
def onrejectionhandled(value) -> html_compose.base_attribute.BaseAttribute:
249    @staticmethod
250    def onrejectionhandled(value) -> BaseAttribute:
251        """
252        "body" attribute: onrejectionhandled
253        rejectionhandled event handler for Window object
254
255        Args:
256            value:
257                Event handler content attribute
258
259        Returns:
260            An onrejectionhandled attribute to be added to your element
261
262        """
263
264        return BaseAttribute("onrejectionhandled", value)

"body" attribute: onrejectionhandled rejectionhandled event handler for Window object

Args: value: Event handler content attribute

Returns: An onrejectionhandled attribute to be added to your element

@staticmethod
def onstorage(value) -> html_compose.base_attribute.BaseAttribute:
266    @staticmethod
267    def onstorage(value) -> BaseAttribute:
268        """
269        "body" attribute: onstorage
270        storage event handler for Window object
271
272        Args:
273            value:
274                Event handler content attribute
275
276        Returns:
277            An onstorage attribute to be added to your element
278
279        """
280
281        return BaseAttribute("onstorage", value)

"body" attribute: onstorage storage event handler for Window object

Args: value: Event handler content attribute

Returns: An onstorage attribute to be added to your element

@staticmethod
def onunhandledrejection(value) -> html_compose.base_attribute.BaseAttribute:
283    @staticmethod
284    def onunhandledrejection(value) -> BaseAttribute:
285        """
286        "body" attribute: onunhandledrejection
287        unhandledrejection event handler for Window object
288
289        Args:
290            value:
291                Event handler content attribute
292
293        Returns:
294            An onunhandledrejection attribute to be added to your element
295
296        """
297
298        return BaseAttribute("onunhandledrejection", value)

"body" attribute: onunhandledrejection unhandledrejection event handler for Window object

Args: value: Event handler content attribute

Returns: An onunhandledrejection attribute to be added to your element

@staticmethod
def onunload(value) -> html_compose.base_attribute.BaseAttribute:
300    @staticmethod
301    def onunload(value) -> BaseAttribute:
302        """
303        "body" attribute: onunload
304        unload event handler for Window object
305
306        Args:
307            value:
308                Event handler content attribute
309
310        Returns:
311            An onunload attribute to be added to your element
312
313        """
314
315        return BaseAttribute("onunload", value)

"body" attribute: onunload unload event handler for Window object

Args: value: Event handler content attribute

Returns: An onunload attribute to be added to your element