Documentation ¶
Index ¶
- Constants
- func Boost(val bool) g.Node
- func Confirm(msg string) g.Node
- func ConnectWebSockets(path string, children ...g.Node) g.Node
- func Delete(path string) g.Node
- func Disable() g.Node
- func Disinherit(val string) g.Node
- func Encoding() g.Node
- func Ext(ext string) g.Node
- func Get(path string) g.Node
- func Headers(headers map[string]string) g.Node
- func HistoryElt() g.Node
- func Include(val string) g.Node
- func IncludeHtmx() g.Node
- func IncludeHyperScript() g.Node
- func Indicator(val string) g.Node
- func Params(val string) g.Node
- func Patch(path string) g.Node
- func Post(path string) g.Node
- func Preserve(val string) g.Node
- func Prompt(msg string) g.Node
- func PushUrl(val bool) g.Node
- func PushUrlValue(val string) g.Node
- func Put(path string) g.Node
- func Request(val string) g.Node
- func Select(val string) g.Node
- func ServerSentEvents(path string) g.Node
- func Swap(value string) g.Node
- func Sync(val string) g.Node
- func Target(val string) g.Node
- func Trigger(val string) g.Node
- func Vals(vals map[string]string) g.Node
- func WebSockets(path string) g.Node
Constants ¶
View Source
const ( SwapInnerHTML = "innerHTML" //The default, replace the inner html of the target element SwapOuterHTML = "outerHTML" //Replace the entire target element with the response SwapBeforeBegin = "beforebegin" //Insert the response before the target element SwapAfterBegin = "afterbegin" //Insert the response before the first child of the target element SwapBeforeEnd = "beforeend" //Insert the response after the last child of the target element SwapAfterEnd = "afterend" //Insert the response after the target element SwapDelete = "delete" //Deletes the target element regardless of the response SwapNone = "none" //Does not append content from response (out of band items will still be processed) )
View Source
const ( SyncDrop = "drop" SyncAbort = "abort" SyncReplace = "replace" SyncQueue = "queue" SyncQueueFirst = "queue first" SyncQueueLast = "queue last" SyncQueueAll = "queue all" )
Variables ¶
This section is empty.
Functions ¶
func ConnectWebSockets ¶
ConnectWebSockets wrap child to "ws-connect" component
func Disinherit ¶
func HistoryElt ¶
func IncludeHyperScript ¶
IncludeHyperScript added the script tag with hyperscript
func PushUrlValue ¶
func ServerSentEvents ¶
func WebSockets ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.