input

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control uint
const (
	APPLY Control = iota
	CANCEL
)

type Model

type Model struct {
	Title  string
	Action string
	// contains filtered or unexported fields
}

func New

func New() *Model

func (*Model) Init

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

func (*Model) SetValue

func (m *Model) SetValue(val string)

func (*Model) SetWidth

func (m *Model) SetWidth(w int)

func (*Model) Update

func (m *Model) Update(message tea.Msg) (*Model, tea.Cmd)

func (*Model) Value

func (m *Model) Value() string

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