dialog

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DefaultWidth   = 80
	DefaultHeight  = 9
	DefaultPadding = 15
)

Variables

View Source
var (
	DefaultContentStyle = lipgloss.NewStyle()
	DefaultBorderStyle  = lipgloss.NewStyle().
						Border(lipgloss.RoundedBorder()).
						BorderForeground(lipgloss.Color("#874BFD")).
						Padding(1, 1)
	DefaultWhiteSpaceForground = color.Faint
)

Functions

This section is empty.

Types

type Dialog

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

func Error

func Error(message string) *Dialog

func Success

func Success(message string) *Dialog

func (*Dialog) Height

func (d *Dialog) Height(h int) *Dialog

func (*Dialog) Stars

func (d *Dialog) Stars(total, erned int) *Dialog

func (*Dialog) String

func (d *Dialog) String() string

func (*Dialog) WhiteSpaceChars

func (d *Dialog) WhiteSpaceChars(chs string) *Dialog

func (*Dialog) Width

func (d *Dialog) Width(w int) *Dialog

Jump to

Keyboard shortcuts

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