htmx-lucid-0.2.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 -> 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

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

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/

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 -> 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/

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 -> Attributes Source #

https://htmx.org/attributes/hx-sync/ control how requests made by different elements are synchronized

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