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