toasts

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TOAST_WIDTH = 45

Variables

This section is empty.

Functions

func New

func New(ctx context.Context) *taro.Program

Types

type Toast

type Toast struct {
	Message string
	Level   ToastLevel
}

type ToastLevel

type ToastLevel int
const (
	ToastLevelInfo ToastLevel = iota
	ToastLevelWarn
	ToastLevelError
)

type Toaster

type Toaster struct {
	// contains filtered or unexported fields
}

func (*Toaster) Init

func (t *Toaster) Init() taro.Cmd

func (*Toaster) Update

func (t *Toaster) Update(msg tea.Msg) (taro.Model, tea.Cmd)

func (*Toaster) View

func (t *Toaster) View(state *tty.State)

Jump to

Keyboard shortcuts

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