selectfromlist

package
v0.0.0-...-eab4cf6 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 6 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(title string, listItems []string) Model

func (Model) Init

func (Model) Init() tea.Cmd

func (Model) SelectedItem

func (m Model) SelectedItem() string

func (Model) SetItems

func (m Model) SetItems(itemStrings []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