MCPcopy Index your code

hub / github.com/donseba/go-htmx / functions

Functions228 in github.com/donseba/go-htmx

↓ 51 callersMethodString
()
sse/sse.go:20
↓ 40 callersFunctionequal
(t *testing.T, expected, actual string)
htmx_test.go:275
↓ 32 callersMethodGet
(k HxResponseKey)
response.go:43
↓ 18 callersMethodSet
(k HxResponseKey, val string)
response.go:39
↓ 16 callersFunctionNewSwap
NewSwap returns a new Swap
swap.go:58
↓ 15 callersMethodNewHandler
NewHandler returns a new htmx handler.
htmx.go:49
↓ 14 callersMethodWrite
Write writes the data to the connection as part of an HTTP reply.
handler.go:47
↓ 13 callersFunctionequalBool
(t *testing.T, expected, actual bool)
htmx_test.go:269
↓ 12 callersMethodHandle
(w http.ResponseWriter, r *http.Request, cl Listener)
sse/sse.go:26
↓ 12 callersMethodResponseHeader
ResponseHeader returns the value of the response header
handler.go:259
↓ 9 callersFunctionHxStrToBool
HxStrToBool converts a string to a boolean value.
htmx.go:109
↓ 9 callersMethodSetData
(input map[string]any)
component.go:31
↓ 8 callersMethodAddEvent
(event string)
trigger.go:33
↓ 8 callersFunctionHxBoolToStr
HxBoolToStr converts a boolean value to a string.
htmx.go:114
↓ 8 callersFunctionNew
New returns a new htmx instance.
htmx.go:37
↓ 7 callersFunctionNewTrigger
NewTrigger returns a new Trigger set
trigger.go:19
↓ 7 callersMethodRender
Render renders the given renderer with the given context and writes the output to the response writer
handler.go:264
↓ 6 callersMethodString
String returns the string representation of the Trigger set
trigger.go:88
↓ 6 callersMethodWrap
(renderer RenderableComponent, target string)
component.go:28
↓ 6 callersMethodWriteHeader
WriteHeader sets the HTTP response header with the provided status code.
handler.go:136
↓ 5 callersMethodHeader
Header returns the header map that will be sent by WriteHeader
handler.go:146
↓ 5 callersFunctionNewManager
NewManager initializes and returns a new Manager instance.
sse/sse.go:93
↓ 5 callersMethodSend
(message Envelope)
sse/sse.go:25
↓ 5 callersMethodaddNotifyObject
(nt notificationType, message string, vars ...map[string]any)
trigger.go:67
↓ 5 callersMethodnotifyObject
(nt notificationType, message string, vars ...map[string]any)
trigger.go:128
↓ 4 callersMethodAddEventDetailed
AddEventDetailed adds a trigger to the Trigger set
trigger.go:38
↓ 4 callersMethodChan
()
sse/sse.go:15
↓ 4 callersMethodLocation
Location can be used to trigger a client side redirection without reloading the whole page https://htmx.org/headers/hx-location/
handler.go:163
↓ 4 callersMethodRender
(ctx context.Context)
component.go:27
↓ 4 callersMethodSetURL
(url *url.URL)
component.go:37
↓ 4 callersMethodWarn
(msg string, args ...any)
htmx.go:28
↓ 4 callersMethodWriteHTML
WriteHTML is a helper that writes HTML data to the connection.
handler.go:52
↓ 4 callersMethodWriteString
WriteString is a helper that writes string data to the connection.
handler.go:57
↓ 3 callersMethodAddEventObject
AddEventObject adds a trigger to the Trigger set
trigger.go:45
↓ 3 callersFunctionNewMessage
NewMessage returns a new message instance.
sse/sse.go:59
↓ 3 callersMethodReSwap
ReSwap allows you to specify how the response will be swapped. See hx-swap for possible values https://htmx.org/attributes/hx-swap/
handler.go:197
↓ 3 callersMethodScroll
Scroll sets the scrolling behavior to scroll to the top or bottom
swap.go:86
↓ 3 callersMethodScrollTop
ScrollTop sets the scrolling behavior to scroll to the top of the target element
swap.go:91
↓ 3 callersMethodSettle
Settle modifies the amount of time that htmx will wait after receiving a response to settle the content
swap.go:142
↓ 3 callersMethodShow
Show sets the scrolling behavior to scroll to the top or bottom
swap.go:101
↓ 3 callersMethodTrigger
Trigger triggers events as soon as the response is received. https://htmx.org/headers/hx-trigger/
handler.go:219
↓ 3 callersMethodTriggerAfterSettle
TriggerAfterSettle trigger events after the settling step. https://htmx.org/headers/hx-trigger/
handler.go:231
↓ 3 callersMethodTriggerAfterSwap
TriggerAfterSwap trigger events after the swap step. https://htmx.org/headers/hx-trigger/
handler.go:243
↓ 3 callersMethodWithEvent
WithEvent sets the event name for the message.
sse/sse.go:79
↓ 3 callersMethodadd
add adds a trigger to the Trigger set
trigger.go:27
↓ 3 callersFunctionequalInt
(t *testing.T, expected, actual int)
htmx_test.go:281
↓ 3 callersFunctionmainContent
()
examples/tiktaktoe/tiktaktoe.go:131
↓ 2 callersMethodID
()
sse/sse.go:14
↓ 2 callersFunctionIsHxBoosted
IsHxBoosted returns true if the request is a htmx request and the request is boosted
htmx.go:93
↓ 2 callersMethodIsHxBoosted
IsHxBoosted returns true if the request is a htmx request and the request is boosted
handler.go:31
↓ 2 callersFunctionIsHxHistoryRestoreRequest
IsHxHistoryRestoreRequest returns true if the request is a htmx request and the request is a history restore request
htmx.go:98
↓ 2 callersMethodIsHxHistoryRestoreRequest
IsHxHistoryRestoreRequest returns true if the request is a htmx request and the request is a history restore request
handler.go:36
↓ 2 callersFunctionIsHxRequest
IsHxRequest returns true if the request is a htmx request.
htmx.go:88
↓ 2 callersMethodIsHxRequest
IsHxRequest returns true if the request is a htmx request.
handler.go:26
↓ 2 callersFunctionNewClient
(id string)
sse/sse.go:41
↓ 2 callersMethodPushURL
PushURL pushes a new url into the history stack. https://htmx.org/headers/hx-push-url/
handler.go:175
↓ 2 callersMethodReSwapWithObject
ReSwapWithObject allows you to specify how the response will be swapped. See hx-swap for possible values https://htmx.org/attributes/hx-swap/
handler.go:203
↓ 2 callersMethodReTarget
ReTarget a CSS selector that updates the target of the content update to a different element on the page
handler.go:208
↓ 2 callersMethodRedirect
Redirect can be used to do a client-side redirect to a new location
handler.go:180
↓ 2 callersMethodRefresh
Refresh if set to true the client side will do a full refresh of the page
handler.go:185
↓ 2 callersMethodRenderPartial
RenderPartial returns true if the request is an HTMX request that is either boosted or a standard request, provided it is not a history restore reques
handler.go:42
↓ 2 callersMethodReplaceURL
ReplaceURL allows you to replace the current URL in the browser location history. https://htmx.org/headers/hx-replace-url/
handler.go:191
↓ 2 callersMethodString
String returns the string representation of the Swap
swap.go:166
↓ 2 callersMethodTriggerWithObject
TriggerWithObject triggers events as soon as the response is received. https://htmx.org/headers/hx-trigger/
handler.go:225
↓ 2 callersMethodWriteJSON
WriteJSON is a helper that writes json data to the connection.
handler.go:62
↓ 2 callersFunctioncheckWinner
(board [3][3]string)
examples/tiktaktoe/tiktaktoe.go:109
↓ 2 callersMethodinjectData
(input map[string]any)
component.go:41
↓ 2 callersFunctionmainContent
()
examples/render/main.go:69
↓ 2 callersFunctionplaceFood
(game *SnakeGame)
examples/snake/game.go:47
↓ 2 callersMethodsetScrolling
setScrolling sets the scrolling behavior
swap.go:71
↓ 2 callersMethodsetTiming
setTiming modifies the amount of time that htmx will wait after receiving a response to swap or settle the content
swap.go:116
↓ 1 callersMethodAdd
(message Envelope)
sse/sse.go:31
↓ 1 callersMethodAddSuccess
(message string, vars ...map[string]any)
trigger.go:51
↓ 1 callersMethodClients
()
sse/sse.go:27
↓ 1 callersMethodFS
FS sets the filesystem to load templates from, this allows for embedding templates into the go binary.
component.go:76
↓ 1 callersMethodFocusScroll
FocusScroll enables or disables the focus scroll behaviour
swap.go:160
↓ 1 callersMethodHxHeader
(r *http.Request)
request.go:49
↓ 1 callersFunctionHxRequestHeaderFromRequest
(r *http.Request)
request.go:36
↓ 1 callersMethodHxResponseHeader
(headers http.Header)
response.go:29
↓ 1 callersMethodIgnoreTitle
IgnoreTitle enables or disables the Title
swap.go:154
↓ 1 callersMethodReSelect
ReSelect a CSS selector that allows you to choose which part of the response is used to be swapped in. Overrides an existing hx-select on the triggeri
handler.go:213
↓ 1 callersMethodRequest
Request returns the HxHeaders from the request
handler.go:254
↓ 1 callersMethodScrollBottom
ScrollBottom sets the scrolling behavior to scroll to the bottom of the target element
swap.go:96
↓ 1 callersMethodShowBottom
ShowBottom sets the scrolling behavior to scroll to the bottom of the target element
swap.go:111
↓ 1 callersMethodShowTop
ShowTop sets the scrolling behavior to scroll to the top of the target element
swap.go:106
↓ 1 callersMethodStopPolling
StopPolling sets the response status to 286, which will stop htmx from polling
handler.go:141
↓ 1 callersMethodStyle
Style sets the style of the swap, default is innerHTML and can be changed in htmx.config.defaultSwapStyle
swap.go:65
↓ 1 callersMethodSwap
Swap modifies the amount of time that htmx will wait after receiving a response to swap the content
swap.go:137
↓ 1 callersMethodTransition
Transition enables or disables the transition see : https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API
swap.go:148
↓ 1 callersMethodTriggerAfterSettleWithObject
TriggerAfterSettleWithObject trigger events after the settling step. https://htmx.org/headers/hx-trigger/
handler.go:237
↓ 1 callersMethodTriggerAfterSwapWithObject
TriggerAfterSwapWithObject trigger events after the swap step. https://htmx.org/headers/hx-trigger/
handler.go:249
↓ 1 callersMethodTriggerError
(message string, vars ...map[string]any)
trigger.go:145
↓ 1 callersMethodTriggerInfo
(message string, vars ...map[string]any)
trigger.go:137
↓ 1 callersMethodTriggerSuccess
(message string, vars ...map[string]any)
trigger.go:133
↓ 1 callersMethodTriggerWarning
(message string, vars ...map[string]any)
trigger.go:141
↓ 1 callersMethodWith
(r RenderableComponent, target string)
component.go:29
↓ 1 callersMethodaddPartial
(key string, value any)
component.go:43
↓ 1 callersMethodaddPartial
addPartial adds a partial to the component
component.go:317
↓ 1 callersMethoddata
()
component.go:40
↓ 1 callersFunctiongenerateCacheKey
Generate a hash of the function names to include in the cache key
component.go:337
next →1–100 of 228, ranked by callers