taboptions

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionStatus

type OptionStatus string
const (
	// OptionIdle is for when the options are ready to use
	OptionIdle OptionStatus = "Idle"

	// OptionWait is for when the options are not ready to use
	OptionWait OptionStatus = "Wait"

	// OptionNone is for when the options are not usable
	OptionNone OptionStatus = "None"
)

func (OptionStatus) String

func (o OptionStatus) String() string

type Options

type Options struct {
	Style lipgloss.Style
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions() *Options

func (*Options) AddOption

func (o *Options) AddOption(option string, action func())

func (*Options) Init

func (o *Options) Init() tea.Cmd

func (*Options) SetStatus

func (o *Options) SetStatus(status OptionStatus)

func (*Options) Update

func (o *Options) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Options) View

func (o *Options) View() string

Jump to

Keyboard shortcuts

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