toast

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INFO    = "info"
	SUCCESS = "success"
	WARNING = "warning"
	DANGER  = "danger"
)

Variables

This section is empty.

Functions

func Danger

func Danger(ctx *caesar.Context, message string)

func Info

func Info(ctx *caesar.Context, message string)

func Success

func Success(ctx *caesar.Context, message string)

func Warning

func Warning(ctx *caesar.Context, message string)

Types

type Toast

type Toast struct {
	Level   string `json:"level"`
	Message string `json:"message"`
}

func New

func New(level string, message string) Toast

func (Toast) SetHXTriggerHeader

func (t Toast) SetHXTriggerHeader(ctx *caesar.Context)

Jump to

Keyboard shortcuts

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