Documentation
¶
Index ¶
- func AddErrorToast(c *echo.Context, message string)
- func AddInfoToast(c *echo.Context, message string)
- func AddSuccessToast(c *echo.Context, message string)
- func AddToast(c *echo.Context, message string, level ToastLevel)
- func AddTrigger(c *echo.Context, event string, detail any)
- func AddWarningToast(c *echo.Context, message string)
- func CloseDialog(c *echo.Context)
- func HxVals(vals map[string]string) string
- func IsHXRequest(c *echo.Context) bool
- func Redirect(c *echo.Context, url string) error
- func Render(c *echo.Context, statusCode int, t templ.Component) error
- func Reswap(c *echo.Context, props ...ReswapProps)
- type ReswapProps
- type ToastLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddErrorToast ¶
func AddInfoToast ¶
func AddSuccessToast ¶
func AddWarningToast ¶
func CloseDialog ¶
func IsHXRequest ¶
func Reswap ¶
func Reswap(c *echo.Context, props ...ReswapProps)
Types ¶
type ReswapProps ¶
type ToastLevel ¶
type ToastLevel string
const ( LevelInfo ToastLevel = "info" LevelSuccess ToastLevel = "success" LevelWarning ToastLevel = "warning" LevelError ToastLevel = "error" )
Click to show internal directories.
Click to hide internal directories.