flash

package
v1.0.55 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flash

type Flash struct {
	Type         string
	Application  string
	Level        string
	Title        string
	Body         template.HTML
	Dismissable  bool
	DismissAfter uint
}

func ComplexFlash

func ComplexFlash() *Flash

func SimpleFlash

func SimpleFlash() *Flash

func (*Flash) DismissedAfter

func (f *Flash) DismissedAfter(milliseconds uint) *Flash

func (*Flash) IsDismissable

func (f *Flash) IsDismissable(dismissable bool) *Flash

func (*Flash) WithBody

func (f *Flash) WithBody(body template.HTML) *Flash

func (*Flash) WithLevel

func (f *Flash) WithLevel(level string) *Flash

func (*Flash) WithTitle

func (f *Flash) WithTitle(title string) *Flash

Jump to

Keyboard shortcuts

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