Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Htmx.Lucid.Core
Description
This module defines the "core" 11 HTMX attributes https://htmx.org/reference/#attributes
Synopsis
- hxGet_ :: Text -> Attributes
- hxPost_ :: Text -> Attributes
- hxPushUrl_ :: Text -> Attributes
- hxSelect_ :: Text -> Attributes
- hxSelectOob_ :: Text -> Attributes
- hxSwap_ :: Text -> Attributes
- hxSwapS_ :: Swap -> Attributes
- hxSwapOob_ :: Text -> Attributes
- hxTarget_ :: Text -> Attributes
- hxTrigger_ :: Text -> Attributes
- hxVals_ :: Text -> Attributes
- data OnEvent
- = DomOnEvent Text
- | HtmxOnEvent HtmxEvent
- hxOn_ :: OnEvent -> Text -> Attributes
Documentation
hxGet_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-get/ issues a GET to the specified URL
hxPost_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-get/ issues a POST to the specified URL
hxPushUrl_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-push-url/ push a URL into the browser location bar to create history
hxSelect_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-select/ select content to swap in from a response
hxSelectOob_ :: Text -> Attributes 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 -> Attributes Source #
https://htmx.org/attributes/hx-swap/ controls how content will swap in (outerHTML, beforeend, afterend, …)
hxSwapS_ :: Swap -> Attributes Source #
hxSwapOob_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-swap-oob/ mark element to swap in from a response (out of band)
hxTarget_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-target/ specifies the target element to be swapped
hxTrigger_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-trigger/ specifies the event that triggers the request
hxVals_ :: Text -> Attributes Source #
https://htmx.org/attributes/hx-vals/ add values to submit with the request (JSON format)
Indicates whether you are handling an arbitrary DOM event
or on of the bespoke HtmxEvent
(defined by the htmx js bundle)
Constructors
DomOnEvent Text | |
HtmxOnEvent HtmxEvent |
hxOn_ :: OnEvent -> Text -> Attributes Source #
https://htmx.org/attributes/hx-on/ handle events with inline scripts on elements