Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module defines the "core" 11 HTMX attributes https://htmx.org/reference/#attributes
Synopsis
- hxGet_ :: Text -> Attribute
- hxPost_ :: Text -> Attribute
- hxPushUrl_ :: Text -> Attribute
- hxSelect_ :: Text -> Attribute
- hxSelectOob_ :: Text -> Attribute
- hxSwap_ :: Text -> Attribute
- hxSwapS_ :: Swap -> Attribute
- hxSwapOob_ :: Text -> Attribute
- hxTarget_ :: Text -> Attribute
- hxTrigger_ :: Text -> Attribute
- hxVals_ :: Text -> Attribute
- data OnEvent
- hxOn_ :: OnEvent -> Text -> Attribute
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