ui

package
v0.0.0-...-39255db Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListItem

type ListItem struct {
	Name   string
	Info   string
	Action tssh.Action
}

func (ListItem) Description

func (i ListItem) Description() string

func (ListItem) FilterValue

func (i ListItem) FilterValue() string

func (ListItem) Title

func (i ListItem) Title() string

type ListModel

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

func NewList

func NewList(title string, items ...ListItem) *ListModel

func (*ListModel) Init

func (m *ListModel) Init() tea.Cmd

func (*ListModel) SetItems

func (m *ListModel) SetItems(items ...ListItem) tea.Cmd

func (*ListModel) Update

func (m *ListModel) Update(msg tea.Msg) (*ListModel, tea.Cmd)

func (*ListModel) View

func (m *ListModel) View() string

Jump to

Keyboard shortcuts

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