Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module defines additional attributes that can be used to get additional behaviour https://htmx.org/reference/#attributes-additional
Synopsis
- hxBoost_ :: Text -> Attribute
- hxConfirm_ :: Text -> Attribute
- hxDelete_ :: Text -> Attribute
- hxDisable_ :: Attribute
- hxDisabledElt_ :: Text -> Attribute
- hxDisinherit_ :: Text -> Attribute
- hxEncoding_ :: Text -> Attribute
- hxExt_ :: Text -> Attribute
- hxExtension_ :: HtmxExtension -> Attribute
- hxExtensions_ :: [HtmxExtension] -> Attribute
- hxHeaders_ :: Text -> Attribute
- hxHistory_ :: Text -> Attribute
- hxHistoryElt_ :: Attribute
- hxInclude_ :: Text -> Attribute
- hxIndicator_ :: Text -> Attribute
- data ParamsFilter
- hxParams_ :: ParamsFilter -> Attribute
- hxPatch_ :: Text -> Attribute
- hxPreserve_ :: Attribute
- hxPrompt_ :: Text -> Attribute
- hxPut_ :: Text -> Attribute
- hxReplaceUrl_ :: Text -> Attribute
- hxRequest_ :: Text -> Attribute
- hxSse_ :: Text -> Attribute
- data SyncStrategy
- hxSync_ :: Text -> Attribute
- hxSyncStrategy_ :: Text -> SyncStrategy -> Attribute
- hxValidate_ :: Text -> Attribute
- hxVars_ :: Text -> Attribute
- hxWs_ :: Text -> Attribute
Documentation
hxBoost_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-boost/ add progressive enhancement for links and forms
hxConfirm_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-confirm/ shows a confirm() dialog before issuing a request
hxDelete_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-delete/ issues a DELETE to the specified URL
hxDisable_ :: Attribute Source #
https://htmx.org/attributes/hx-disable/ disables htmx processing for the given node and any children nodes
hxDisabledElt_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-disabled-elt/ adds the disabled attribute to the specified elements while a request is in flight
hxDisinherit_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-disinherit/ control and disable automatic attribute inheritance for child nodes
hxEncoding_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-encoding/ changes the request encoding type
hxExt_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-ext/ extensions to use for this element
hxExtension_ :: HtmxExtension -> Attribute Source #
A typesafe version of hxExt_
that works with the "included" extensions
that the htmx codebase is tested against
hxExtensions_ :: [HtmxExtension] -> Attribute Source #
Include multiple extensions in one declaration
hxHeaders_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-headers/ adds to the headers that will be submitted with the request
hxHistory_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-history/ prevent sensitive data being saved to the history cache
hxHistoryElt_ :: Attribute Source #
https://htmx.org/attributes/hx-history-elt/ the element to snapshot and restore during history navigation
hxInclude_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-include/ include additional data in requests
hxIndicator_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-indicator/ the element to put the htmx-request class on during the request
data ParamsFilter Source #
hxParams_ :: ParamsFilter -> Attribute Source #
https://htmx.org/attributes/hx-params/ filters the parameters that will be submitted with a request
hxPatch_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-patch/ issues a PATCH to the specified URL
hxPreserve_ :: Attribute Source #
https://htmx.org/attributes/hx-preserve/ specifies elements to keep unchanged between requests
hxPrompt_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-prompt/ shows a prompt() before submitting a request
hxPut_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-put/ issues a PUT to the specified URL
hxReplaceUrl_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-replace-url/ replace the URL in the browser location bar
hxRequest_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-request/ configures various aspects of the request
hxSse_ :: Text -> Attribute Source #
Deprecated: Don't use hx-sse directly, please use the server sent events extension instead https://htmx.org/extensions/server-sent-events/
https://htmx.org/attributes/hx-sse/ has been moved to an extension. Documentation for older versions
data SyncStrategy Source #
SyncDrop | drop (ignore) this request if an existing request is in flight (the default) |
SyncAbort | drop (ignore) this request if an existing request is in flight, and, if that is not the case, abort this request if another request occurs while it is still in flight |
SyncReplace | abort the current request, if any, and replace it with this request |
SyncQueueFirst | queue the first request to show up while a request is in flight |
SyncQueueLast | queue the last request to show up while a request is in flight |
SyncQueueAll | queue all requests that show up while a request is in flight |
hxSync_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-sync/ control how requests made by different elements are synchronized
hxSyncStrategy_ :: Text -> SyncStrategy -> Attribute Source #
https://htmx.org/attributes/hx-sync/
the same as hxSync_
but accepts a strongly typed htmx SyncStrategy
hxValidate_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-validate/ force elements to validate themselves before a request
hxVars_ :: Text -> Attribute Source #
https://htmx.org/attributes/hx-vars/ adds values dynamically to the parameters to submit with the request (deprecated, please use hx-vals)
hxWs_ :: Text -> Attribute Source #
Deprecated: Don't use hx-ws directly, please use the web sockets extension instead https://htmx.org/extensions/server-sent-events/https://htmx.org/extensions/web-sockets/
https://htmx.org/attributes/hx-ws/ has been moved to an extension. Documentation for older versions