htmx-lucid-0.1.0.0: Use htmx with lucid
Safe HaskellSafe-Inferred
LanguageHaskell2010

Htmx.Lucid.Extra

Description

This module defines additional attributes that can be used to get additional behaviour https://htmx.org/reference/#attributes-additional

Synopsis

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

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 #

Constructors

All

Include all parameters (default)

None

Include no parameters

Exclude [Text]

Include all except the list of parameter names

Include [Text]

Include all the list of parameter names

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 #

Constructors

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

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