mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-29 22:11:22 +00:00
4.3 KiB
4.3 KiB
layout | title |
---|---|
layout.njk | </> kutty - Attributes |
Attribute Reference
Attribute | Description |
---|---|
kt-boost |
converts anchors and forms to use AJAX requests |
kt-classes |
timed modification of classes on an element |
kt-confirm |
shows a confim() dialog before issuing a request |
kt-delete |
issues a DELETE to the specified URL |
kt-error-url |
a URL to send client-side errors to |
kt-get |
issues a GET to the specified URL |
kt-history-elt |
the element to snapshot and restore during history navigation |
kt-include |
includes additional data in AJAX requests |
kt-indicator |
the element to put the kutty-request class on during the AJAX request |
kt-patch |
issues a PATCH to the specified URL |
kt-params |
filters the parameters that will be submitted with a request |
kt-post |
issues a POST to the specified URL |
kt-prompt |
shows a prompt before submitting a request |
kt-push-url |
pushes the URL into the location bar, creating a new history entry |
kt-put |
issues a PUT to the specified URL |
kt-select |
selects a subset of the server response to process |
kt-sse-src |
establishes an SSE source for events |
kt-swap |
controls how the response content is swapped into the DOM (e.g. 'outerHTML' or 'beforeEnd') |
kt-swap-oob |
marks content in a response as being "Out of Band", i.e. swapped somewhere other than the target |
kt-target |
specifies the target element to be swapped |
kt-trigger |
specifies the event that triggers the request |
CSS Class Reference
Class | Description |
---|---|
kutty-request |
Applied to either the element or the element specified with kt-indicator while a request is ongoing |
kutty-indicator |
A dynamically generated class that will toggle visible (opacity:1) when a kutty-request class is present |
kutty-swapping |
Applied to a target before any content is swapped, removed after it is swapped |
kutty-settling |
Applied to a target after content is swapped, removed after it is settled |
HTTP Header Reference
Request Headers
Header | Description |
---|---|
X-HTTP-Method-Override | TODO - Description |
X-KT-Request | TODO - Description |
X-KT-Trigger-Id | TODO - Description |
X-KT-Trigger-Name | TODO - Description |
X-KT-Target-Id | TODO - Description |
X-KT-Current-URL | TODO - Description |
X-KT-Prompt | TODO - Description |
X-KT-Event-Target | TODO - Description |
X-KT-Active-Element | TODO - Description |
X-KT-Active-Element-Value | TODO - Description |
Response Headers
Header | Description |
---|---|
X-KT-Trigger | TODO - Description |
X-KT-Push | TODO - Description |
Event Reference
Event | Description |
---|---|
afterOnLoad.kutty | TODO - Description |
afterSettle.kutty | TODO - Description |
afterSettle.kutty | TODO - Description |
afterSwap.kutty | TODO - Description |
beforeOnLoad.kutty | TODO - Description |
beforeRequest.kutty | TODO - Description |
beforeSwap.kutty | TODO - Description |
historyCacheMiss.kutty | TODO - Description |
historyCacheMissLoad.kutty | TODO - Description |
historyRestore.kutty | TODO - Description |
historyUpdate.kutty | TODO - Description |
initSSE.kutty | TODO - Description |
load.kutty | TODO - Description |
noSSESourceError.kutty | TODO - Description |
onLoadError.kutty | TODO - Description |
oobErrorNoTarget.kutty | TODO - Description |
prompt.kutty | TODO - Description |
responseError.kutty | TODO - Description |
sendError.kutty | TODO - Description |
sseError.kutty | TODO - Description |
swapError.kutty | TODO - Description |
values.kutty | TODO - Description |