list

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 3 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 {
	SelectedStyle   lipgloss.Style
	UnselectedStyle lipgloss.Style
	// contains filtered or unexported fields
}

func New

func New(prompt string, items []string) Model

func (Model) Blur

func (m Model) Blur() Model

func (Model) Focus

func (m Model) Focus() Model

func (Model) Focused

func (m Model) Focused() bool

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) SelectedItem

func (m Model) SelectedItem() string

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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