htmx

package module
v0.0.0-...-69312d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 4 Imported by: 0

README

gomponents-htmx

With this simple library you can easily use htmx in you project with gomponents.

Not yet ready for usage!

Documentation

Index

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 Boost

func Boost(val bool) g.Node

func Confirm

func Confirm(msg string) g.Node

func ConnectWebSockets

func ConnectWebSockets(path string, children ...g.Node) g.Node

ConnectWebSockets wrap child to "ws-connect" component

func Delete

func Delete(path string) g.Node

func Disable

func Disable() g.Node

func Disinherit

func Disinherit(val string) g.Node

func Encoding

func Encoding() g.Node

func Ext

func Ext(ext string) g.Node

func Get

func Get(path string) g.Node

func Headers

func Headers(headers map[string]string) g.Node

func HistoryElt

func HistoryElt() g.Node

func Include

func Include(val string) g.Node

func IncludeHtmx

func IncludeHtmx() g.Node

IncludeHtmx added the script tag with htmx

func IncludeHyperScript

func IncludeHyperScript() g.Node

IncludeHyperScript added the script tag with hyperscript

func Indicator

func Indicator(val string) g.Node

func Params

func Params(val string) g.Node

func Patch

func Patch(path string) g.Node

func Post

func Post(path string) g.Node

func Preserve

func Preserve(val string) g.Node

func Prompt

func Prompt(msg string) g.Node

func PushUrl

func PushUrl(val bool) g.Node

func PushUrlValue

func PushUrlValue(val string) g.Node

func Put

func Put(path string) g.Node

func Request

func Request(val string) g.Node

func Select

func Select(val string) g.Node

func ServerSentEvents

func ServerSentEvents(path string) g.Node

func Swap

func Swap(value string) g.Node

func Sync

func Sync(val string) g.Node

func Target

func Target(val string) g.Node

func Trigger

func Trigger(val string) g.Node

func Vals

func Vals(vals map[string]string) g.Node

func WebSockets

func WebSockets(path string) g.Node

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL