buttons

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 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 Button

type Button struct {
	Name   string
	Hidden bool
}

func (*Button) ID

func (b *Button) ID() string

type Buttons

type Buttons struct {
	Position lipgloss.Position
	List     []*Button
	Active   int
	// contains filtered or unexported fields
}

func New

func New(names ...string) *Buttons

func (*Buttons) Current

func (b *Buttons) Current() *Button

func (*Buttons) Init

func (b *Buttons) Init() tea.Cmd

func (*Buttons) Update

func (b *Buttons) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Buttons) View

func (b *Buttons) View() string

type Move

type Move uint8
const (
	MoveUp Move = iota
	MoveDown
)

Jump to

Keyboard shortcuts

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