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 -> Attributes
- hxConfirm_ :: Text -> Attributes
- hxDelete_ :: Text -> Attributes
- hxDisable_ :: Attributes
- hxDisabledElt_ :: Text -> Attributes
- hxDisinherit_ :: Text -> Attributes
- hxEncoding_ :: Text -> Attributes
- hxExt_ :: Text -> Attributes
- hxExtension_ :: HtmxExtension -> Attributes
- hxExtensions_ :: [HtmxExtension] -> Attributes
- hxHeaders_ :: Text -> Attributes
- hxHistory_ :: Text -> Attributes
- hxHistoryElt_ :: Attributes
- hxInclude_ :: Text -> Attributes
- hxIndicator_ :: Text -> Attributes
- data ParamsFilter
- hxParams_ :: ParamsFilter -> Attributes
- hxPatch_ :: Text -> Attributes
- hxPreserve_ :: Attributes
- hxPrompt_ :: Text -> Attributes
- hxPut_ :: Text -> Attributes
- hxReplaceUrl_ :: Text -> Attributes
- hxRequest_ :: Text -> Attributes
- hxSse_ :: Text -> Attributes
- data SyncStrategy
- hxSync_ :: Text -> Attributes
- hxSyncStrategy_ :: Text -> SyncStrategy -> Attributes
- hxValidate_ :: Text -> Attributes
- hxVars_ :: Text -> Attributes
- hxWs_ :: Text -> Attributes
Documentation
hxBoost_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-boost/ add progressive enhancement for links and forms
hxConfirm_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-confirm/ shows a confirm() dialog before issuing a request
hxDelete_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-delete/ issues a DELETE to the specified URL
hxDisable_ :: Attributes Source #
https://htmx.org/attributes/hx-disable/ disables htmx processing for the given node and any children nodes
hxDisabledElt_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-disabled-elt/ adds the disabled attribute to the specified elements while a request is in flight
hxDisinherit_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-disinherit/ control and disable automatic attribute inheritance for child nodes
hxEncoding_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-encoding/ changes the request encoding type
hxExt_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-ext/ extensions to use for this element
hxExtension_ :: HtmxExtension -> Attributes Source #
A typesafe version of hxExt_
that works with the "included" extensions
that the htmx codebase is tested against
hxExtensions_ :: [HtmxExtension] -> Attributes Source #
Include multiple extensions in one declaration
hxHeaders_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-headers/ adds to the headers that will be submitted with the request
hxHistory_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-history/ prevent sensitive data being saved to the history cache
hxHistoryElt_ :: Attributes Source #
https://htmx.org/attributes/hx-history-elt/ the element to snapshot and restore during history navigation
hxInclude_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-include/ include additional data in requests
hxIndicator_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-indicator/ the element to put the htmx-request class on during the request
data ParamsFilter Source #
An enumeration of the filter types based on the documentation here: https://htmx.org/attributes/hx-params/
hxParams_ :: ParamsFilter -> Attributes Source #
https://htmx.org/attributes/hx-params/ filters the parameters that will be submitted with a request
hxPatch_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-patch/ issues a PATCH to the specified URL
hxPreserve_ :: Attributes Source #
https://htmx.org/attributes/hx-preserve/ specifies elements to keep unchanged between requests
hxPrompt_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-prompt/ shows a prompt() before submitting a request
hxPut_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-put/ issues a PUT to the specified URL
hxReplaceUrl_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-replace-url/ replace the URL in the browser location bar
hxRequest_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-request/ configures various aspects of the request
hxSse_ :: Text -> Attributes 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 #
An enumeration of the sync strategies based on the documentation here: https://htmx.org/attributes/hx-sync/
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 -> Attributes Source #
https://htmx.org/attributes/hx-sync/ control how requests made by different elements are synchronized
hxSyncStrategy_ :: Text -> SyncStrategy -> Attributes Source #
https://htmx.org/attributes/hx-sync/
the same as hxSync_
but accepts a strongly typed htmx SyncStrategy
hxValidate_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-validate/ force elements to validate themselves before a request
hxVars_ :: Text -> Attributes 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 -> Attributes 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