radioList

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HORIZONTAL direction = iota
	VERTICAL
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Name   string
	Id     string
	Action string
}

type KeyMap

type KeyMap struct {
	PREV   key.Binding
	NEXT   key.Binding
	SELECT key.Binding
}

func (KeyMap) FullHelp

func (k KeyMap) FullHelp() [][]key.Binding

func (KeyMap) ShortHelp

func (k KeyMap) ShortHelp() []key.Binding

type Model

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

func New

func New(d direction, choices ...Item) Model

func (Model) FullHelp

func (m Model) FullHelp() [][]key.Binding

func (Model) GetSelected

func (m Model) GetSelected() Item

func (Model) GetSize

func (m Model) GetSize() (h, v int)

func (*Model) SetSize

func (m *Model) SetSize(h, v int)

func (Model) ShortHelp

func (m Model) ShortHelp() []key.Binding

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