shared

package
v6.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActiveTabBorder = lipgloss.Border{
	Top:         "─",
	Bottom:      " ",
	Left:        "│",
	Right:       "│",
	TopLeft:     "╭",
	TopRight:    "╮",
	BottomLeft:  "┘",
	BottomRight: "└",
}
View Source
var TabBorder = lipgloss.Border{
	Top:         "─",
	Bottom:      "─",
	Left:        "│",
	Right:       "│",
	TopLeft:     "╭",
	TopRight:    "╮",
	BottomLeft:  "┴",
	BottomRight: "┴",
}

Functions

func CancelButton

func CancelButton(focused, defaultButton bool, value string) string

func NewSpinner

func NewSpinner() spinner.Model

func OKButton

func OKButton(focused, defaultButton bool, value string) string

func PasswordType

func PasswordType(o *options.PasswordsOptions) string

Types

type ErrorMsg

type ErrorMsg struct{}

type Index

type Index int

type Item

type Item string

func (Item) FilterValue

func (i Item) FilterValue() string

type ItemDelegate

type ItemDelegate struct{}

func (ItemDelegate) Height

func (d ItemDelegate) Height() int

func (ItemDelegate) Render

func (d ItemDelegate) Render(w io.Writer, m list.Model, index int, listItem list.Item)

func (ItemDelegate) Spacing

func (d ItemDelegate) Spacing() int

func (ItemDelegate) Update

func (d ItemDelegate) Update(msg tea.Msg, m *list.Model) tea.Cmd

type Message

type Message struct{ Err error }

func (Message) Error

func (e Message) Error() string

type OtherMsg

type OtherMsg struct{}

type SetMsg

type SetMsg string

type State

type State int
const (
	Ready State = iota
	Loading
)

type Styles

type Styles struct {
	BaseStyle,
	Cursor,
	Tab,
	ActiveTab,
	ListTitle,
	Wrap,
	Doc,
	Divider,
	Help,
	Item,
	Subtle,
	Success,
	Error,
	Bold,
	Prompt,
	ListView,
	FilterPrompt,
	FilterCursor,
	FocusedPrompt,
	InactivePagination,
	Pagination,
	SelectionMarker,
	SelectedMenuItem,
	Checkmark lipgloss.Style
}

func DefaultStyles

func DefaultStyles() Styles

type SuccessMsg

type SuccessMsg struct{}

Jump to

Keyboard shortcuts

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