htmx-0.0.0.1: Use htmx with various haskell libraries
Safe HaskellSafe-Inferred
LanguageHaskell2010

Htmx.Lucid.Core

Description

This module defines the "core" 11 HTMX attributes https://htmx.org/reference/#attributes

Synopsis

Documentation

hxGet_ :: Text -> Attribute Source #

https://htmx.org/attributes/hx-get/ issues a GET to the specified URL

hxPost_ :: Text -> Attribute Source #

https://htmx.org/attributes/hx-get/ issues a POST to the specified URL

hxPushUrl_ :: Text -> Attribute Source #

https://htmx.org/attributes/hx-push-url/ push a URL into the browser location bar to create history

hxSelect_ :: Text -> Attribute Source #

https://htmx.org/attributes/hx-select/ select content to swap in from a response

hxSelectOob_ :: Text -> Attribute Source #

https://htmx.org/attributes/hx-select-oob/ select content to swap in from a response, somewhere other than the target (out of band)

hxSwap_ :: Text -> Attribute Source #

https://htmx.org/attributes/hx-swap/ controls how content will swap in (outerHTML, beforeend, afterend, …)

hxSwapS_ :: Swap -> Attribute Source #

Like hxSwap but takes a strongly typed swap style. This doesn't allow modifiers to be applied.

hxSwapOob_ :: Text -> Attribute Source #

https://htmx.org/attributes/hx-swap-oob/ mark element to swap in from a response (out of band)

hxTarget_ :: Text -> Attribute Source #

https://htmx.org/attributes/hx-target/ specifies the target element to be swapped

hxTrigger_ :: Text -> Attribute Source #

https://htmx.org/attributes/hx-trigger/ specifies the event that triggers the request

hxVals_ :: Text -> Attribute Source #

https://htmx.org/attributes/hx-vals/ add values to submit with the request (JSON format)

hxOn_ :: OnEvent -> Text -> Attribute Source #

https://htmx.org/attributes/hx-on/ handle events with inline scripts on elements