htmx

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddErrorToast

func AddErrorToast(c *echo.Context, message string)

func AddInfoToast

func AddInfoToast(c *echo.Context, message string)

func AddSuccessToast

func AddSuccessToast(c *echo.Context, message string)

func AddToast

func AddToast(c *echo.Context, message string, level ToastLevel)

func AddTrigger

func AddTrigger(c *echo.Context, event string, detail any)

func AddWarningToast

func AddWarningToast(c *echo.Context, message string)

func CloseDialog

func CloseDialog(c *echo.Context)

func HxVals

func HxVals(vals map[string]string) string

func IsHXRequest

func IsHXRequest(c *echo.Context) bool

func Redirect

func Redirect(c *echo.Context, url string) error

func Render

func Render(c *echo.Context, statusCode int, t templ.Component) error

func Reswap

func Reswap(c *echo.Context, props ...ReswapProps)

Types

type ReswapProps

type ReswapProps struct {
	Swap   string
	Target string
	Select string
}

type ToastLevel

type ToastLevel string
const (
	LevelInfo    ToastLevel = "info"
	LevelSuccess ToastLevel = "success"
	LevelWarning ToastLevel = "warning"
	LevelError   ToastLevel = "error"
)

Jump to

Keyboard shortcuts

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