-
Notifications
You must be signed in to change notification settings - Fork 111
/
htmx.web-types.json
282 lines (282 loc) · 10.9 KB
/
htmx.web-types.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
{
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
"name": "htmx",
"version": "1.0.0",
"js-types-syntax": "typescript",
"description-markup": "markdown",
"contributions": {
"html": {
"attributes": [
{
"name": "hx-boost",
"description": "The **hx-boost** attribute allows you to \"boost\" normal anchors and form tags to use AJAX instead. This has the [nice fallback](https://en.wikipedia.org/wiki/Progressive_enhancement) that, if the user does not have javascript enabled, the site will continue to work.",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-boost/"
},
{
"name": "hx-confirm",
"description": "The **hx-confirm** attribute allows you to confirm an action before issuing a request. This can be useful in cases where the action is destructive and you want to ensure that the user really wants to do it.",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-confirm/"
},
{
"name": "hx-delete",
"description": "The **hx-delete** attribute will cause an element to issue a **DELETE** to the specified URL and swap the HTML into the DOM using a swap strategy.",
"description-sections": {
"Not inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-confirm/"
},
{
"name": "hx-disable",
"description": "The **hx-disable** attribute disables htmx processing for the given node and any children nodes",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-disable"
},
{
"name": "hx-encoding",
"description": "The **hx-encoding** attribute changes the request encoding type",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-encoding"
},
{
"name": "hx-ext",
"description": "The **hx-ext** attribute enables extensions for an element",
"description-sections": {
"Not Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-ext"
},
{
"name": "hx-get",
"description": "The **hx-get** attribute issues a `GET` to the specified URL",
"description-sections": {
"Not Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-get"
},
{
"name": "hx-headers",
"description": "The **hx-headers** attribute adds to the headers that will be submitted with the request",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-headers"
},
{
"name": "hx-history-elt",
"description": "The **hx-history-elt** attribute specifies the element to snapshot and restore during history navigation",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-history-elt"
},
{
"name": "hx-include",
"description": "The **hx-include** attribute specifies additional values/inputs to include in AJAX requests",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-include"
},
{
"name": "hx-indicator",
"description": "The **hx-indicator** attribute specifies the element to put the `htmx-request` class on during the AJAX request, displaying it as a request indicator",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-indicator"
},
{
"name": "hx-disinherit",
"description": "The **hx-disinherit** attribute allows you to control and disable automatic attribute inheritance for child nodes",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-disinherit"
},
{
"name": "hx-params",
"description": "The **hx-params** attribute allows you filter the parameters that will be submitted with a request",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-params"
},
{
"name": "hx-patch",
"description": "The **hx-patch** attribute issues a `PATCH` to the specified URL",
"description-sections": {
"Not Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-patch"
},
{
"name": "hx-post",
"description": "The **hx-post** attribute issues a `POST` to the specified URL",
"description-sections": {
"Not Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-post"
},
{
"name": "hx-preserve",
"description": "The **hx-preserve** attribute preserves an element between requests (requires the `id` be stable)",
"description-sections": {
"Not Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-preserve"
},
{
"name": "hx-prompt",
"description": "The **hx-prompt** attribute shows a prompt before submitting a request",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-prompt"
},
{
"name": "hx-push-url",
"description": "The **hx-push-url** attribute pushes the URL into the location bar, creating a new history entry",
"description-sections": {
"Not Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-push-url"
},
{
"name": "hx-put",
"description": "The **hx-put** attribute issues a `PUT` to the specified URL",
"description-sections": {
"Not Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-put"
},
{
"name": "hx-request",
"description": "The **hx-request** attribute configures various aspects of the request",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-request"
},
{
"name": "hx-select",
"description": "The **hx-select** attribute selects a subset of the server response to process",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-select"
},
{
"name": "hx-sse",
"description": "The **hx-sse** attribute connects the DOM to a SSE source",
"description-sections": {
"Not Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-sse"
},
{
"name": "hx-swap-oob",
"description": "The **hx-swap-oob** attribute marks content in a response as being \"Out of Band\", i.e. swapped somewhere other than the target",
"description-sections": {
"Not Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-swap-oob"
},
{
"name": "hx-swap",
"description": "The **hx-swap** attribute controls how the response content is swapped into the DOM (e.g. 'outerHTML' or 'beforeend')",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-swap"
},
{
"name": "hx-sync",
"description": "The **hx-sync** attribute controls requests made by different elements are synchronized with one another",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-sync"
},
{
"name": "hx-target",
"description": "The **hx-target** attribute specifies the target element to be swapped",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-target"
},
{
"name": "hx-trigger",
"description": "The **hx-trigger** attribute specifies specifies the event that triggers the request",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-trigger"
},
{
"name": "hx-vals",
"description": "The **hx-vals** attribute specifies values to add to the parameters that will be submitted with the request in JSON form",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-vals"
},
{
"name": "hx-vars",
"description": "The **hx-vars** attribute specifies computed values to add to the parameters that will be submitted with the request",
"description-sections": {
"Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-vars"
},
{
"name": "hx-ws",
"description": "The **hx-ws** attribute connects the DOM to a Web Socket source",
"description-sections": {
"Not Inherited": ""
},
"doc-url": "https://htmx.org/attributes/hx-ws"
}
]
},
"css": {
"classes": [
{
"name": "htmx-added",
"description": "Applied to a new piece of content before it is swapped, removed after it is settled.",
"doc-url": "https://htmx.org/reference/#classes"
},
{
"name": "htmx-indicator",
"description": "A dynamically generated class that will toggle visible (opacity:1) when a `htmx-request` class is present.",
"doc-url": "https://htmx.org/reference/#classes"
},
{
"name": "htmx-request",
"description": "Applied to either the element or the element specified with `hx-indicator` while a request is ongoing.",
"doc-url": "https://htmx.org/reference/#classes"
},
{
"name": "htmx-settling",
"description": "Applied to a target after content is swapped, removed after it is settled. The duration can be modified via `hx-swap`.",
"doc-url": "https://htmx.org/reference/#classes"
},
{
"name": "htmx-swapping",
"description": "Applied to a target before any content is swapped, removed after it is swapped. The duration can be modified via `hx-swap`.",
"doc-url": "https://htmx.org/reference/#classes"
}
]
}
}
}