keylist

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

func New

func New(opts ...Option) (m Model)

func (*Model) SetItems added in v0.0.7

func (m *Model) SetItems(items [][]string)

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type Option

type Option func(*Model)

func WithGrid added in v0.0.6

func WithGrid(b bool) Option

func WithItems

func WithItems(items [][]string) Option

func WithMaxRows added in v0.0.6

func WithMaxRows(i int) Option

func WithSeparator added in v0.0.6

func WithSeparator(s string) Option

func WithStyles added in v0.0.6

func WithStyles(s Styles) Option

type Styles

type Styles struct {
	Key   lipgloss.Style
	Value lipgloss.Style
}

func DefaultStyles

func DefaultStyles() Styles

TODO: Should this be shared

Jump to

Keyboard shortcuts

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