datastar

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET_ACTION    = "$$get"
	POST_ACTION   = "$$post"
	PUT_ACTION    = "$$put"
	PATCH_ACTION  = "$$patch"
	DELETE_ACTION = "$$delete"
)

Variables

This section is empty.

Functions

func AsyncThunk added in v0.0.18

func AsyncThunk(asyncFuncLines string) string

func Bind added in v0.0.23

func Bind(attributeName, expression string) gomps.NODE

func BodySanitize added in v0.0.26

func BodySanitize(r *http.Request, sanitizer *sanitize.Sanitizer, store any) error

func BodyUnmarshal added in v0.0.26

func BodyUnmarshal(r *http.Request, store any) error

func CDN

func CDN() gomps.NODE

func FetchURL

func FetchURL(expression string) gomps.NODE

func Focus

func Focus(expression string) gomps.NODE

func FragmentSelector

func FragmentSelector(querySelector string) gomps.NODE

func FragmentSwap

func FragmentSwap(swapType FragmentSwapType) gomps.NODE
func Header(header, expression string) gomps.NODE

func Latest

func Latest() gomps.NODE

func LatestRunAllPlugins

func LatestRunAllPlugins() gomps.NODE

func MergeStore

func MergeStore(m any) gomps.NODE

func Model

func Model(expression string) gomps.NODE

func On

func On(eventName, expression string) gomps.NODE

func QueryStringUnmarshal added in v0.0.26

func QueryStringUnmarshal(r *http.Request, store any) error

func Ref

func Ref(name string) gomps.NODE

func ScrollIntoView

func ScrollIntoView() gomps.NODE

func ServerSentEvents

func ServerSentEvents(expression string) gomps.NODE

func Show

func Show(booleanExpression string) gomps.NODE

func Teleport

func Teleport(querySelectorExpression string) gomps.NODE

func Text

func Text(expression string) gomps.NODE

func TextF

func TextF(format string, args ...interface{}) gomps.NODE

Types

type FragmentSwapType

type FragmentSwapType string
const (
	FragmentSwapMorph   FragmentSwapType = "morph"
	FragmentSwapInner   FragmentSwapType = "inner"
	FragmentSwapOuter   FragmentSwapType = "outer"
	FragmentSwapPrepend FragmentSwapType = "prepend"
	FragmentSwapAppend  FragmentSwapType = "append"
	FragmentSwapBefore  FragmentSwapType = "before"
	FragmentSwapAfter   FragmentSwapType = "after"
	FragmentSwapDelete  FragmentSwapType = "delete"
)

Jump to

Keyboard shortcuts

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