Skip to content

Commit

Permalink
Merge pull request #26 from chasefleming/chasefleming/more-htmx-attrs
Browse files Browse the repository at this point in the history
Add additional htmx attrs
  • Loading branch information
chasefleming authored Oct 24, 2023
2 parents 59bf4b0 + a32bcfe commit 3295ce4
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions htmx/htmx.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,46 @@ const (
HXDelete = "hx-delete"
HXPatch = "hx-patch"

// Request Headers and Content-Type
HXHeaders = "hx-headers"
HXContent = "hx-content"

// Request Parameters
HXParams = "hx-params"
HXValues = "hx-values"

// Request Timeout and Retries
HXTimeout = "hx-timeout"
HXRetry = "hx-retry"
HXRetryTimeout = "hx-retry-timeout"

// Response Processing
HXSwap = "hx-swap"
HXTarget = "hx-target"
HXSwapOOB = "hx-swap-oob"
HXSelect = "hx-select"
HXExt = "hx-ext"
HXVals = "hx-vals"

// Events
HXTrigger = "hx-trigger"
HXConfirm = "hx-confirm"
HXTrigger = "hx-trigger"
HXConfirm = "hx-confirm"
HXOn = "hx-on"
HXTriggeringElement = "hx-triggering-element"
HXTriggeringEvent = "hx-triggering-event"

// Indicators
HXIndicator = "hx-indicator"

// History
HXPushURL = "hx-push-url"
HXPushURL = "hx-push-url"
HXHistoryElt = "hx-history-elt"
HXHistoryAttr = "hx-history-attr"

// Error Handling
HXBoost = "hx-boost"
HXError = "hx-error"

// Caching
HXCache = "hx-cache"
)

0 comments on commit 3295ce4

Please sign in to comment.